b47bdfc6f7
svn path=/nixpkgs/trunk/; revision=14003
28 lines
895 B
Nix
28 lines
895 B
Nix
args : with args;
|
|
rec {
|
|
name = "kqemu-"+version;
|
|
src = fetchurl {
|
|
url = http://bellard.org/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"];
|
|
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
|
|
sed -e '/linux\/ioctl.h/a#include <linux\/sched.h>' -i kqemu-linux.c
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
|
|
|
meta = {
|
|
description = " Kernel module for Qemu acceleration ";
|
|
};
|
|
}
|