2011-02-24 15:42:51 +00:00
|
|
|
{ stdenv, fetchurl, libxml2, gnutls, devicemapper, perl, python
|
|
|
|
, iproute, iptables, readline }:
|
2010-01-27 12:12:35 +00:00
|
|
|
|
2011-02-24 11:59:30 +00:00
|
|
|
let version = "0.8.8"; in
|
2010-01-27 12:12:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libvirt-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libvirt.org/sources/libvirt-${version}.tar.gz";
|
2011-02-24 11:59:30 +00:00
|
|
|
sha256 = "04z1757qpi3ssnjv5h2qnw1sds2m50yxk67cbdam6w4i50vyl2h3";
|
2010-01-27 12:12:35 +00:00
|
|
|
};
|
|
|
|
|
2011-02-24 15:42:51 +00:00
|
|
|
buildInputs = [ libxml2 gnutls devicemapper perl python iproute iptables readline ];
|
2011-02-24 13:36:18 +00:00
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--localstatedir=/var
|
|
|
|
IP_PATH=${iproute}/sbin/ip
|
|
|
|
IPTABLES_PATH=${iptables}/sbin/iptables
|
|
|
|
IP6TABLES_PATH=${iptables}/sbin/ip6tables
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = "localstatedir=$(TMPDIR)/var";
|
2010-01-27 12:12:35 +00: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 11:59:30 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-01-27 12:12:35 +00:00
|
|
|
};
|
|
|
|
}
|