summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix
blob: 3aa2731ac3fb439327a55a5f62fca3db217f6355 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
args : with args;
	with 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 */
let 
  debugStep = FullDepEntry (''
  	cat config-host.mak
  '') [minInit];
  preConfigure = FullDepEntry ('' 
  	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 [preConfigure doConfigure debugStep doMakeInstall doForceShare doPropagate]);
	meta = {
		description = "
		Kernel module for Qemu acceleration
";
	};
}