summary refs log tree commit diff
path: root/pkgs/applications/virtualization/qemu/linux-img/0.2.nix
blob: 99d222070c2d422d48cacd0d24279c2a26b740b3 (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
args : with args;
	let localDefs = builderDefs {
		src = /* put a fetchurl here */
		fetchurl {
			url = http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2;
			sha256 = "08xlwy1908chpc4fsqy2v13zi25dapk0ybrd43fj95v67kdj5hj1";
		};
		buildInputs = [];
		configureFlags = [];
	} null; /* null is a terminator for sumArgs */
	in with localDefs;
let 
doCopy = FullDepEntry ("
  ensureDir \$out/share/qemu-images
  cp linux-${version}.img  \$out/share/qemu-images/
") [minInit doUnpack defEnsureDir];
in
stdenv.mkDerivation rec {
	name = "QEmu-Linux-Image-"+version;
	builder = writeScript (name + "-builder")
		(textClosure localDefs [doCopy doForceShare doPropagate]);
	meta = {
		description = "
		${abort "Write a description"}
";
	};
}