2011-02-25 14:24:41 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, gnutls, devicemapper, perl, python
|
|
|
|
, iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess }:
|
2010-01-27 13:12:35 +01:00
|
|
|
|
2011-02-24 12:59:30 +01:00
|
|
|
let version = "0.8.8"; in
|
2010-01-27 13:12:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libvirt-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libvirt.org/sources/libvirt-${version}.tar.gz";
|
2011-02-24 12:59:30 +01:00
|
|
|
sha256 = "04z1757qpi3ssnjv5h2qnw1sds2m50yxk67cbdam6w4i50vyl2h3";
|
2010-01-27 13:12:35 +01:00
|
|
|
};
|
|
|
|
|
2011-02-25 14:24:41 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2
|
|
|
|
utillinux udev libpciaccess
|
|
|
|
];
|
2011-02-24 14:36:18 +01:00
|
|
|
|
2011-02-25 14:24:41 +01:00
|
|
|
preConfigure =
|
2011-02-24 14:36:18 +01:00
|
|
|
''
|
2011-02-25 14:24:41 +01:00
|
|
|
PATH=${iproute}/sbin:${iptables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH
|
2011-02-24 14:36:18 +01:00
|
|
|
'';
|
|
|
|
|
2011-02-25 14:24:41 +01:00
|
|
|
configureFlags = "--localstatedir=/var";
|
|
|
|
|
2011-02-24 14:36:18 +01:00
|
|
|
installFlags = "localstatedir=$(TMPDIR)/var";
|
2010-01-27 13:12:35 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://libvirt.org/;
|
|
|
|
description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).";
|
|
|
|
license = "LGPLv2+";
|
2011-02-24 12:59:30 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-01-27 13:12:35 +01:00
|
|
|
};
|
|
|
|
}
|