libvirt: 6.0.0 -> 6.1.0, fix module
This commit is contained in:
parent
24c8d75874
commit
d8664c78b1
@ -214,14 +214,14 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.libvirtd = {
|
systemd.services.libvirtd = {
|
||||||
description = "Libvirt Virtual Machine Management Daemon";
|
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
requires = [ "libvirtd-config.service" ];
|
requires = [ "libvirtd-config.service" ];
|
||||||
after = [ "systemd-udev-settle.service" "libvirtd-config.service" ]
|
after = [ "systemd-udev-settle.service" "libvirtd-config.service" ]
|
||||||
++ optional vswitch.enable "ovs-vswitchd.service";
|
++ optional vswitch.enable "ovs-vswitchd.service";
|
||||||
|
|
||||||
environment.LIBVIRTD_ARGS = ''--config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
|
environment.LIBVIRTD_ARGS = concatMapStringsSep " " escapeShellArg (
|
||||||
|
[ "--config" configFile
|
||||||
|
"--timeout" "120" # from ${libvirt}/var/lib/sysconfig/libvirtd
|
||||||
|
] ++ cfg.extraOptions);
|
||||||
|
|
||||||
path = [ cfg.qemuPackage ] # libvirtd requires qemu-img to manage disk images
|
path = [ cfg.qemuPackage ] # libvirtd requires qemu-img to manage disk images
|
||||||
++ optional vswitch.enable vswitch.package;
|
++ optional vswitch.enable vswitch.package;
|
||||||
@ -266,5 +266,8 @@ in {
|
|||||||
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
|
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.sockets.libvirtd .wantedBy = [ "sockets.target" ];
|
||||||
|
systemd.sockets.libvirtd-tcp.wantedBy = [ "sockets.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, fetchgit
|
{ stdenv, fetchurl, fetchgit
|
||||||
, pkgconfig, makeWrapper, libtool, autoconf, automake, fetchpatch
|
, pkgconfig, makeWrapper, autoreconfHook, fetchpatch
|
||||||
, coreutils, libxml2, gnutls, perl, python2, attr, glib, docutils
|
, coreutils, libxml2, gnutls, perl, python2, attr, glib, docutils
|
||||||
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
|
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
|
||||||
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
|
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
|
||||||
@ -17,28 +17,26 @@ let
|
|||||||
buildFromTarball = stdenv.isDarwin;
|
buildFromTarball = stdenv.isDarwin;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "libvirt";
|
pname = "libvirt";
|
||||||
version = "6.0.0";
|
version = "6.1.0";
|
||||||
|
|
||||||
src =
|
src =
|
||||||
if buildFromTarball then
|
if buildFromTarball then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://libvirt.org/sources/${pname}-${version}.tar.xz";
|
url = "http://libvirt.org/sources/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0xkz6n6pyv7k4jj7762v65jdsj8pkcpbnas65hjy7b5vi4in9fz6";
|
sha256 = "1h7bmd7zgl64mwnxx4ji8l0mqmcbfxsx6kp1scyyfq2mwidihz0n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fetchgit {
|
fetchgit {
|
||||||
url = git://libvirt.org/libvirt.git;
|
url = git://libvirt.org/libvirt.git;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0j0rvymxaqavak03w7gblm8ingvbcwczpwfk8s0iqvsgfgk9974p";
|
sha256 = "18sr3jvpxn45c4vrjzpa4qgnnfxxh95v6l6qk31zka3siv8rrwqx";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper pkgconfig docutils ];
|
nativeBuildInputs = [ makeWrapper pkgconfig docutils ] ++ optionals (!buildFromTarball) [ autoreconfHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libxml2 gnutls perl python2 readline gettext libtasn1 libgcrypt yajl
|
libxml2 gnutls perl python2 readline gettext libtasn1 libgcrypt yajl
|
||||||
libxslt xhtml1 perlPackages.XMLXPath curl libpcap glib
|
libxslt xhtml1 perlPackages.XMLXPath curl libpcap glib
|
||||||
] ++ optionals (!buildFromTarball) [
|
|
||||||
libtool autoconf automake
|
|
||||||
] ++ optionals stdenv.isLinux [
|
] ++ optionals stdenv.isLinux [
|
||||||
libpciaccess lvm2 utillinux systemd libnl numad zfs
|
libpciaccess lvm2 utillinux systemd libnl numad zfs
|
||||||
libapparmor libcap_ng numactl attr parted
|
libapparmor libcap_ng numactl attr parted
|
||||||
@ -53,7 +51,6 @@ in stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
${ optionalString (!buildFromTarball) "./bootstrap --no-git --gnulib-srcdir=$(pwd)/.gnulib" }
|
|
||||||
PATH=${stdenv.lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute iptables ebtables lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH
|
PATH=${stdenv.lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute iptables ebtables lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH
|
||||||
# the path to qemu-kvm will be stored in VM's .xml and .save files
|
# the path to qemu-kvm will be stored in VM's .xml and .save files
|
||||||
# do not use "''${qemu_kvm}/bin/qemu-kvm" to avoid bound VMs to particular qemu derivations
|
# do not use "''${qemu_kvm}/bin/qemu-kvm" to avoid bound VMs to particular qemu derivations
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libvirt";
|
pname = "libvirt";
|
||||||
version = "6.0.0";
|
version = "6.1.0";
|
||||||
|
|
||||||
src = assert version == libvirt.version; fetchgit {
|
src = assert version == libvirt.version; fetchgit {
|
||||||
url = git://libvirt.org/libvirt-python.git;
|
url = git://libvirt.org/libvirt-python.git;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0p6a8mlqf1kb0pg1avygg6ymlfvqsk7qisyhmyaxkj4pn8q87cxy";
|
sha256 = "0h3w1p5y4kg2hdbhxmg4lphcnmr7979iwi0m750f8vzbfccsrp7k";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
@ -17282,11 +17282,11 @@ let
|
|||||||
|
|
||||||
SysVirt = buildPerlModule rec {
|
SysVirt = buildPerlModule rec {
|
||||||
pname = "Sys-Virt";
|
pname = "Sys-Virt";
|
||||||
version = "6.0.0";
|
version = "6.1.0";
|
||||||
src = assert version == pkgs.libvirt.version; pkgs.fetchgit {
|
src = assert version == pkgs.libvirt.version; pkgs.fetchgit {
|
||||||
url = git://libvirt.org/libvirt-perl.git;
|
url = git://libvirt.org/libvirt-perl.git;
|
||||||
rev = "v${version}";
|
rev = "299f3ba34ae4daea966bf1cb07d90f4151da895f"; # there is no "v6.1.0" tag
|
||||||
sha256 = "06r333bc52x0g511lw3nwp5w5q9d7mwxrbx5ihiv7shwyxn7dh93";
|
sha256 = "0k18spb6r8fym5v4rsnma1fspnzqf1mgr2wkvb8s4cwn915sccp4";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||||
buildInputs = [ pkgs.libvirt CPANChanges TestPod TestPodCoverage XMLXPath ];
|
buildInputs = [ pkgs.libvirt CPANChanges TestPod TestPodCoverage XMLXPath ];
|
||||||
|
Loading…
Reference in New Issue
Block a user