summary refs log tree commit diff
path: root/pkgs/development/libraries/libvirt/default.nix
blob: 39539b9ad4bdab66dbc0baa414249e6acb24b4b9 (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
{ stdenv, fetchurl, libxml2, gnutls, devicemapper, perl }:

let version = "0.7.5"; in

stdenv.mkDerivation {
  name = "libvirt-${version}";

  src = fetchurl {
    url = "http://libvirt.org/sources/libvirt-${version}.tar.gz";
    sha256 = "922481aadf72a74cf14012fe3967c60d01e70f7e88908410d57428943ab4eb8b";
  };

  buildInputs = [ libxml2 gnutls devicemapper perl ];

  # fix for redhat bz 531496
  patches = [ ./non-absolute-ld.patch ];

  # xen currently disabled in nixpkgs
  configureFlags = ''                                                  
    --without-xen
  '';
  
  meta = {
    homepage = http://libvirt.org/;
    description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).";
    license = "LGPLv2+";
  };
}