2008-01-08 03:18:20 +03:00
|
|
|
args : with args;
|
2008-03-24 22:39:12 +03:00
|
|
|
rec {
|
|
|
|
name = "kqemu-"+version;
|
|
|
|
src = fetchurl {
|
2008-11-02 18:54:44 +03:00
|
|
|
url = http://bellard.org/qemu/kqemu-1.3.0pre11.tar.gz;
|
2008-03-24 22:39:12 +03:00
|
|
|
sha256 = "03svg2x52ziglf9r9irf6ziiz8iwa731fk1mdskwdip5jxbyy6jl";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [''--PREFIx=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)''];
|
2008-01-08 03:18:20 +03:00
|
|
|
debugStep = FullDepEntry (''
|
|
|
|
cat config-host.mak
|
2008-03-24 22:39:12 +03:00
|
|
|
'') ["minInit"];
|
2008-01-08 03:18:20 +03:00
|
|
|
preConfigure = FullDepEntry (''
|
2008-03-24 22:39:12 +03:00
|
|
|
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 ";
|
|
|
|
};
|
2008-01-08 03:18:20 +03:00
|
|
|
}
|