about summary refs log tree commit diff
path: root/pkgs/development/python-modules/glymur/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/glymur/default.nix')
-rw-r--r--pkgs/development/python-modules/glymur/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/glymur/default.nix b/pkgs/development/python-modules/glymur/default.nix
index f54ccc14df0c..b9a37779603c 100644
--- a/pkgs/development/python-modules/glymur/default.nix
+++ b/pkgs/development/python-modules/glymur/default.nix
@@ -37,12 +37,12 @@ buildPythonPackage rec {
     })
   ];
 
-  postPatch = lib.optionalString (!stdenv.isDarwin) ''
+  postPatch = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
     substituteInPlace glymur/lib/tiff.py \
         --replace-fail "glymur_config('c')" "ctypes.CDLL('${lib.getLib glibc}/lib/libc.so.6')"
   '';
 
-  __propagatedImpureHostDeps = lib.optional stdenv.isDarwin "/usr/lib/libc.dylib";
+  __propagatedImpureHostDeps = lib.optional stdenv.hostPlatform.isDarwin "/usr/lib/libc.dylib";
 
   build-system = [ setuptools ];