Skip to content
Browse files

kqemu: Use kernel.dev instead of kernelDev

Doesn't build, tarball 404s

Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information...
1 parent 7c6612c commit d10e08b74635461246b97d39e388e327fa479d20 @shlevy committed Mar 25, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 pkgs/os-specific/linux/kqemu/default.nix
View
8 pkgs/os-specific/linux/kqemu/default.nix
@@ -1,7 +1,7 @@
-{ stdenv, fetchurl, kernelDev, perl }:
+{ stdenv, fetchurl, kernel, perl }:
stdenv.mkDerivation rec {
- name = "kqemu-1.4.0pre1-${kernelDev.version}";
+ name = "kqemu-1.4.0pre1-${kernel.version}";
src = fetchurl {
url = "http://www.nongnu.org/qemu/${name}.tar.gz";
@@ -10,13 +10,13 @@ stdenv.mkDerivation rec {
buildInputs = [ perl ];
- configureFlags = [ ''--PREFIX=$out'' ''--kernel-path=$(ls -d ${kernelDev}/lib/modules/*/build)'' ];
+ configureFlags = [ ''--PREFIX=$out'' ''--kernel-path=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build)'' ];
preConfigure = ''
sed -e '/#include/i#include <linux/sched.h>' -i kqemu-linux.c
sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kernel.c
- sed -e 's/`uname -r`/'"$(basename ${kernelDev}/lib/modules/*)"'/' -i install.sh
+ sed -e 's/`uname -r`/${kernel.modDirVersion}/' -i install.sh
sed -e '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh
sed -e '/depmod/d' -i install.sh
cat install.sh

0 comments on commit d10e08b

Please sign in to comment.
Something went wrong with that request. Please try again.