mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
* Install the libvirt-guests boot script for saving/restoring VMs
across host reboots. svn path=/nixpkgs/trunk/; revision=26120
This commit is contained in:
parent
55050ba5c6
commit
f543078655
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libxml2, gnutls, devicemapper, perl, python
|
{ 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
|
let version = "0.8.8"; in
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2
|
[ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2
|
||||||
utillinux udev libpciaccess
|
utillinux udev libpciaccess gettext
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
@ -21,10 +21,16 @@ stdenv.mkDerivation {
|
|||||||
PATH=${iproute}/sbin:${iptables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH
|
PATH=${iproute}/sbin:${iptables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = "--localstatedir=/var";
|
configureFlags = "--localstatedir=/var --with-init-script=redhat";
|
||||||
|
|
||||||
installFlags = "localstatedir=$(TMPDIR)/var";
|
installFlags = "localstatedir=$(TMPDIR)/var";
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
''
|
||||||
|
substituteInPlace $out/etc/rc.d/init.d/libvirt-guests \
|
||||||
|
--replace "$out/bin" "${gettext}/bin"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://libvirt.org/;
|
homepage = http://libvirt.org/;
|
||||||
description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).";
|
description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).";
|
||||||
|
Loading…
Reference in New Issue
Block a user