2007-12-31 09:49:41 +01:00
|
|
|
|
|
|
|
args : with args;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-12-31 09:49:41 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2008-07-07 19:10:21 +02:00
|
|
|
url = [ http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2 http://bellard.org/qemu/linux-0.2.img.bz2];
|
2007-12-31 09:49:41 +01:00
|
|
|
sha256 = "08xlwy1908chpc4fsqy2v13zi25dapk0ybrd43fj95v67kdj5hj1";
|
|
|
|
};
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-12-31 09:49:41 +01:00
|
|
|
let
|
2009-05-20 01:25:58 +02:00
|
|
|
doCopy = fullDepEntry ("
|
2007-12-31 09:49:41 +01:00
|
|
|
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")
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [doCopy doForceShare doPropagate]);
|
2007-12-31 09:49:41 +01:00
|
|
|
meta = {
|
2008-12-14 12:21:30 +01:00
|
|
|
description = "Qemu sample image.";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-12-31 09:49:41 +01:00
|
|
|
};
|
|
|
|
}
|