about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kqemu
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-11-18 09:39:59 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-11-18 09:39:59 +0000
commit7f5b839524cad9211699c68ea02d11c1758a800b (patch)
treeed963d727a8e719d2e1eae8ed31454d59ba2aba3 /pkgs/os-specific/linux/kqemu
parent52e9488541dc9e207d853ce2aa31d0e453c34767 (diff)
downloadnixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar.gz
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar.bz2
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar.lz
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar.xz
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.tar.zst
nixlib-7f5b839524cad9211699c68ea02d11c1758a800b.zip
* Removed selectVersion. There's no good reason to write
  `selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'.
* Replaced `with args' with formal function arguments in several
  packages.
* Renamed several files to `default.nix'.  As a general rule, version
  numbers should only be included in the filename when there is a
  reason to keep multiple versions of a package in Nixpkgs.
  Otherwise, it just makes it harder to update the package.

svn path=/nixpkgs/trunk/; revision=18403
Diffstat (limited to 'pkgs/os-specific/linux/kqemu')
-rw-r--r--pkgs/os-specific/linux/kqemu/1.4.0pre1.nix39
1 files changed, 15 insertions, 24 deletions
diff --git a/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix b/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix
index 75d7483e33b9..ba5cf2e1d0f0 100644
--- a/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix
+++ b/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix
@@ -1,37 +1,28 @@
-args : with args;
-rec {
-  name = "kqemu-"+version;
+{ stdenv, fetchurl, kernel, perl }:
+
+stdenv.mkDerivation rec {
+  name = "kqemu-1.4.0pre1";
+  
   src = fetchurl {
-    url = http://www.nongnu.org/qemu/kqemu-1.4.0pre1.tar.gz;
+    url = "http://www.nongnu.org/qemu/${name}.tar.gz";
     sha256 = "14dlmawn3gia1j401ag5si5k1a1vav7jpv86rl37p1hwmr7fihxs";
   };
 
   buildInputs = [perl];
+  
   configureFlags = [''--PREFIx=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)''];
-  debugStep = fullDepEntry (''
-  	cat config-host.mak
-  '') ["minInit"];
-  preConfigure = fullDepEntry ('' 
+  
+  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/kern        
     sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -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
-  '') ["minInit" "doUnpack"];
-  fixInc = {
-    text = ''
-      sed -e '/#include/i#include <linux/sched.h>' -i kqemu-linux.c
-    '';
-    deps = ["minInit" "doUnpack"];
-  };
-  fixMemFunc = {
-    text=''
-      sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kernel.c
-    '';
-    deps = ["minInit" "doUnpack"];
-  };
-  phaseNames = ["fixInc" "fixMemFunc" "preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
-
+  ''; # */
+  
   meta = {
-    description = " Kernel module for Qemu acceleration ";
+    description = "Kernel module for Qemu acceleration";
   }; 
 }