diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-03-24 19:39:12 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-03-24 19:39:12 +0000 |
commit | 0dfa801a82b2361f4fd2a2f03c021caa518c49ec (patch) | |
tree | 4ce9d15248bd8ec09445d15123880096966d7e25 /pkgs/os-specific/linux/kqemu | |
parent | 4eaf33cc7acab524ee399296b71792db0b0c6223 (diff) | |
download | nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar.gz nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar.bz2 nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar.lz nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar.xz nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.tar.zst nixlib-0dfa801a82b2361f4fd2a2f03c021caa518c49ec.zip |
Updated builderDefs style. Now more things are overridable. Needed to fix build with custom kernels.
svn path=/nixpkgs/trunk/; revision=11274
Diffstat (limited to 'pkgs/os-specific/linux/kqemu')
-rw-r--r-- | pkgs/os-specific/linux/kqemu/1.3.0pre11.nix | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix b/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix index 7b75c2a7def6..6dba6ffd041e 100644 --- a/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix +++ b/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix @@ -1,33 +1,26 @@ args : with args; - let localDefs = builderDefs { - src = /* put a fetchurl here */ - fetchurl { - url = http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre11.tar.gz; - sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl"; - }; - buildInputs = []; - configureFlags = [''--prefix=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)'']; - } null; /* null is a terminator for sumArgs */ - in with localDefs; -let +rec { + name = "kqemu-"+version; + src = fetchurl { + url = http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre11.tar.gz; + sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl"; + }; + + buildInputs = []; + configureFlags = [''--PREFIx=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)'']; debugStep = FullDepEntry ('' cat config-host.mak - '') [minInit]; + '') ["minInit"]; preConfigure = FullDepEntry ('' - 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]; -in -stdenv.mkDerivation rec { - name = "kqemu-"+version; - builder = writeScript (name + "-builder") - (textClosure localDefs [preConfigure doConfigure debugStep doMakeInstall doForceShare doPropagate]); - meta = { - description = " - Kernel module for Qemu acceleration -"; - inherit src; - }; + 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"]; + + phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"]; + + meta = { + description = " Kernel module for Qemu acceleration "; + }; } |