2008-01-08 00:18:20 +00:00
|
|
|
args : with args;
|
2008-01-18 12:36:56 +00:00
|
|
|
let localDefs = builderDefs {
|
2008-01-08 00:18:20 +00:00
|
|
|
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 */
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2008-01-08 00:18:20 +00:00
|
|
|
let
|
|
|
|
debugStep = FullDepEntry (''
|
|
|
|
cat config-host.mak
|
|
|
|
'') [minInit];
|
|
|
|
preConfigure = FullDepEntry (''
|
2008-01-19 11:00:09 +00:00
|
|
|
sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -i install.sh
|
2008-01-08 00:18:20 +00:00
|
|
|
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")
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [preConfigure doConfigure debugStep doMakeInstall doForceShare doPropagate]);
|
2008-01-08 00:18:20 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Kernel module for Qemu acceleration
|
|
|
|
";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2008-01-08 00:18:20 +00:00
|
|
|
};
|
|
|
|
}
|