about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyunbound/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyunbound/default.nix')
-rw-r--r--pkgs/development/python-modules/pyunbound/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pyunbound/default.nix b/pkgs/development/python-modules/pyunbound/default.nix
index a5d33cbfa440..13357faec593 100644
--- a/pkgs/development/python-modules/pyunbound/default.nix
+++ b/pkgs/development/python-modules/pyunbound/default.nix
@@ -56,7 +56,7 @@ buildPythonPackage rec {
     rm -r $out/bin $out/share $out/include $out/etc/unbound
   ''
   # patchelf is only available on Linux and no patching is needed on darwin
-  + lib.optionalString stdenv.isLinux ''
+  + lib.optionalString stdenv.hostPlatform.isLinux ''
     patchelf --replace-needed libunbound.so.8 $out/${python.sitePackages}/libunbound.so.8 $out/${python.sitePackages}/_unbound.so
   '';