diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-25 15:56:10 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-25 15:56:10 +0000 |
commit | f5430786552a147b005b069f63f002816e397c19 (patch) | |
tree | 1707a1f5dfaeb33d14442094a08963d4d9b6eae4 /pkgs/development/libraries/libvirt | |
parent | 55050ba5c66bfbc209ff9f6311fdedf216ae585f (diff) | |
download | nixlib-f5430786552a147b005b069f63f002816e397c19.tar nixlib-f5430786552a147b005b069f63f002816e397c19.tar.gz nixlib-f5430786552a147b005b069f63f002816e397c19.tar.bz2 nixlib-f5430786552a147b005b069f63f002816e397c19.tar.lz nixlib-f5430786552a147b005b069f63f002816e397c19.tar.xz nixlib-f5430786552a147b005b069f63f002816e397c19.tar.zst nixlib-f5430786552a147b005b069f63f002816e397c19.zip |
* Install the libvirt-guests boot script for saving/restoring VMs
across host reboots. svn path=/nixpkgs/trunk/; revision=26120
Diffstat (limited to 'pkgs/development/libraries/libvirt')
-rw-r--r-- | pkgs/development/libraries/libvirt/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index aa080f398758..e5429bf09959 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, libxml2, gnutls, devicemapper, perl, python -, iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess }: +, iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess, gettext }: let version = "0.8.8"; in @@ -13,7 +13,7 @@ stdenv.mkDerivation { buildInputs = [ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2 - utillinux udev libpciaccess + utillinux udev libpciaccess gettext ]; preConfigure = @@ -21,10 +21,16 @@ stdenv.mkDerivation { PATH=${iproute}/sbin:${iptables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH ''; - configureFlags = "--localstatedir=/var"; + configureFlags = "--localstatedir=/var --with-init-script=redhat"; installFlags = "localstatedir=$(TMPDIR)/var"; + postInstall = + '' + substituteInPlace $out/etc/rc.d/init.d/libvirt-guests \ + --replace "$out/bin" "${gettext}/bin" + ''; + meta = { homepage = http://libvirt.org/; description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes)."; |