From 092bb3c6e023d91a03a538c092b7768b63393018 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 4 Oct 2022 17:54:37 +0200 Subject: [PATCH] python3Packages.libvirt: Fix build on darwin The `zfs` package is not supported on darwin at all, resulting in an evaluation error. This change conditionally removes the patch that tried to introduce the dependency regardless of that fact in f00d5620804f700b05b8cb913ac10ef3ddcaa068, https://github.com/NixOS/nixpkgs/pull/191552 --- pkgs/development/libraries/libvirt/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index 4d0ef8bebd4c..363b955dea87 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -125,6 +125,7 @@ stdenv.mkDerivation rec { patches = [ ./0001-meson-patch-in-an-install-prefix-for-building-on-nix.patch + ] ++ lib.optionals enableZfs [ (substituteAll { src = ./0002-substitute-zfs-and-zpool-commands.patch; zfs = "${zfs}/bin/zfs";