summary refs log tree commit diff
path: root/pkgs/development/libraries/libvirt
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-06-05 05:50:46 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-06-05 05:50:46 +0000
commitdd1471b4c4d60f59ff8328d8da78af0411068b15 (patch)
treebfb198d00a1161bff5307a4f4e8f89df7c8a8d8e /pkgs/development/libraries/libvirt
parente6b5a7e6272642589e692bf9af612c12b45b81eb (diff)
downloadnixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar.gz
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar.bz2
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar.lz
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar.xz
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.tar.zst
nixpkgs-dd1471b4c4d60f59ff8328d8da78af0411068b15.zip
libvirt: fix build on darwin
Diffstat (limited to 'pkgs/development/libraries/libvirt')
-rw-r--r--pkgs/development/libraries/libvirt/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix
index 9449a8f538f..511f97eb3cd 100644
--- a/pkgs/development/libraries/libvirt/default.nix
+++ b/pkgs/development/libraries/libvirt/default.nix
@@ -24,10 +24,10 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ makeWrapper pkgconfig ];
   buildInputs = [
     libxml2 gnutls perl python2 readline gettext libtasn1 libgcrypt yajl
-    attr libxslt xhtml1 perlPackages.XMLXPath curl libpcap parted
+    libxslt xhtml1 perlPackages.XMLXPath curl libpcap
   ] ++ optionals stdenv.isLinux [
     libpciaccess devicemapper lvm2 utillinux systemd libnl numad zfs
-    libapparmor libcap_ng numactl xen
+    libapparmor libcap_ng numactl xen attr parted
   ] ++ optionals stdenv.isDarwin [
      libiconv gmp
   ];
@@ -50,7 +50,6 @@ stdenv.mkDerivation rec {
     "--with-test"
     "--with-esx"
     "--with-remote"
-    "--with-storage-disk"
   ] ++ optionals stdenv.isLinux [
     "--with-attr"
     "--with-apparmor"
@@ -59,6 +58,7 @@ stdenv.mkDerivation rec {
     "--with-macvtap"
     "--with-virtualport"
     "--with-init-script=systemd+redhat"
+    "--with-storage-disk"
     "--with-storage-zfs"
   ] ++ optionals stdenv.isDarwin [
     "--with-init-script=none"
@@ -74,8 +74,8 @@ stdenv.mkDerivation rec {
     substituteInPlace $out/libexec/libvirt-guests.sh \
       --replace "$out/bin" "${gettext}/bin" \
       --replace "lock/subsys" "lock"
-    rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
   '' + optionalString stdenv.isLinux ''
+    rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
     wrapProgram $out/sbin/libvirtd \
       --prefix PATH : ${makeBinPath [ iptables iproute pmutils numad numactl ]}
   '';