2008-10-04 17:24:08 +02:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
2009-05-20 01:25:58 +02:00
|
|
|
fullDepEntry = args.fullDepEntry;
|
2008-10-04 17:24:08 +02:00
|
|
|
|
|
|
|
version = lib.getAttr ["version"] "3.3.0" args;
|
|
|
|
_buildInputs = with args; [
|
|
|
|
python e2fsprogs gnutls pkgconfig libjpeg
|
|
|
|
ncurses SDL libvncserver zlib graphviz ghostscript
|
|
|
|
texLive
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bits.xensource.com/oss-xen/release/${version}/xen-${version}.tar.gz";
|
|
|
|
sha256 = "0vghm31pqq8sc6x81jass2h5s22jlvv582xb8aq4j4cbcc5qixc9";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.filter (x: x != null) _buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["makeTools" "makeXen"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
makeTools = fullDepEntry (''make -C tools install PREFIX=$out '')
|
2008-10-04 17:24:08 +02:00
|
|
|
["minInit" "addInputs" "doUnpack"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
makeXen = fullDepEntry (''make -C xen install PREFIX=$out '')
|
2008-10-04 17:24:08 +02:00
|
|
|
["minInit" "addInputs" "doUnpack"];
|
|
|
|
|
|
|
|
name = "xen-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Xen paravirtualization tools";
|
|
|
|
};
|
|
|
|
}
|