Skip to content

Commit

Permalink
libvirt: 3.0.0 -> 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Volth authored and fpletz committed Mar 25, 2017
1 parent a917289 commit 1cca97c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions pkgs/development/libraries/libvirt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
, curl, libiconv, gmp, xen, zfs
}:

with stdenv.lib;

# if you update, also bump pythonPackages.libvirt or it will break
stdenv.mkDerivation rec {
name = "libvirt-${version}";
Expand All @@ -23,14 +26,14 @@ stdenv.mkDerivation rec {
libxml2 gnutls perl python2 readline
gettext libtasn1 libgcrypt yajl
libxslt xhtml1 perlPackages.XMLXPath curl libpcap
] ++ stdenv.lib.optionals stdenv.isLinux [
] ++ optionals stdenv.isLinux [
libpciaccess devicemapper lvm2 utillinux systemd libcap_ng
libnl numad numactl xen zfs
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ optionals stdenv.isDarwin [
libiconv gmp
];

preConfigure = stdenv.lib.optionalString stdenv.isLinux ''
preConfigure = optionalString stdenv.isLinux ''
PATH=${stdenv.lib.makeBinPath [ iproute iptables ebtables lvm2 systemd ]}:$PATH
substituteInPlace configure \
--replace 'as_dummy="/bin:/usr/bin:/usr/sbin"' 'as_dummy="${numad}/bin"'
Expand All @@ -48,13 +51,13 @@ stdenv.mkDerivation rec {
"--with-test"
"--with-esx"
"--with-remote"
] ++ stdenv.lib.optionals stdenv.isLinux [
] ++ optionals stdenv.isLinux [
"--with-numad"
"--with-macvtap"
"--with-virtualport"
"--with-init-script=redhat"
"--with-storage-zfs"
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ optionals stdenv.isDarwin [
"--with-init-script=none"
];

Expand All @@ -67,16 +70,16 @@ stdenv.mkDerivation rec {
sed -i 's/ON_SHUTDOWN=suspend/ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}/' $out/libexec/libvirt-guests.sh
substituteInPlace $out/libexec/libvirt-guests.sh \
--replace "$out/bin" "${gettext}/bin"
'' + stdenv.lib.optionalString stdenv.isLinux ''
'' + optionalString stdenv.isLinux ''
wrapProgram $out/sbin/libvirtd \
--prefix PATH : ${stdenv.lib.makeBinPath [ iptables iproute pmutils numad numactl ]}
--prefix PATH : ${makeBinPath [ iptables iproute pmutils numad numactl ]}
'';

enableParallelBuilding = true;

NIX_CFLAGS_COMPILE = "-fno-stack-protector";

meta = with stdenv.lib; {
meta = {
homepage = http://libvirt.org/;
repositories.git = git://libvirt.org/libvirt.git;
description = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29067,13 +29067,13 @@ EOF
};

libvirt = let
version = "3.0.0";
version = "3.1.0";
in assert version == pkgs.libvirt.version; pkgs.stdenv.mkDerivation rec {
name = "libvirt-python-${version}";

src = pkgs.fetchurl {
url = "http://libvirt.org/sources/python/${name}.tar.gz";
sha256 = "1ha4bqf029si1lla1z7ca786w571fh3wfs4h7zaglfk4gb2w39wl";
sha256 = "06524dhm27fjfnmr5bqdxlmm1g9ixvzaaq572hgyy5dqwfn64spk";
};

buildInputs = with self; [ python pkgs.pkgconfig pkgs.libvirt lxml ];
Expand Down

0 comments on commit 1cca97c

Please sign in to comment.