mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 08:01:50 +00:00
Updated builderDefs style. Now more things are overridable. Needed to fix build with custom kernels.
svn path=/nixpkgs/trunk/; revision=11274
This commit is contained in:
parent
4eaf33cc7a
commit
0dfa801a82
|
@ -1,33 +1,26 @@
|
||||||
args : with args;
|
args : with args;
|
||||||
let localDefs = builderDefs {
|
rec {
|
||||||
src = /* put a fetchurl here */
|
name = "kqemu-"+version;
|
||||||
fetchurl {
|
src = fetchurl {
|
||||||
url = http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre11.tar.gz;
|
url = http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre11.tar.gz;
|
||||||
sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl";
|
sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl";
|
||||||
};
|
};
|
||||||
buildInputs = [];
|
|
||||||
configureFlags = [''--prefix=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)''];
|
buildInputs = [];
|
||||||
} null; /* null is a terminator for sumArgs */
|
configureFlags = [''--PREFIx=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)''];
|
||||||
in with localDefs;
|
|
||||||
let
|
|
||||||
debugStep = FullDepEntry (''
|
debugStep = FullDepEntry (''
|
||||||
cat config-host.mak
|
cat config-host.mak
|
||||||
'') [minInit];
|
'') ["minInit"];
|
||||||
preConfigure = FullDepEntry (''
|
preConfigure = FullDepEntry (''
|
||||||
sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -i install.sh
|
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 '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh
|
||||||
sed -e '/depmod/d' -i install.sh
|
sed -e '/depmod/d' -i install.sh
|
||||||
cat install.sh
|
cat install.sh
|
||||||
'') [minInit doUnpack];
|
'') ["minInit" "doUnpack"];
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
||||||
name = "kqemu-"+version;
|
|
||||||
builder = writeScript (name + "-builder")
|
meta = {
|
||||||
(textClosure localDefs [preConfigure doConfigure debugStep doMakeInstall doForceShare doPropagate]);
|
description = " Kernel module for Qemu acceleration ";
|
||||||
meta = {
|
};
|
||||||
description = "
|
|
||||||
Kernel module for Qemu acceleration
|
|
||||||
";
|
|
||||||
inherit src;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue