about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymupdf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pymupdf/default.nix')
-rw-r--r--pkgs/development/python-modules/pymupdf/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pymupdf/default.nix b/pkgs/development/python-modules/pymupdf/default.nix
index f54a8b7a8462..4ee28f0b6208 100644
--- a/pkgs/development/python-modules/pymupdf/default.nix
+++ b/pkgs/development/python-modules/pymupdf/default.nix
@@ -88,7 +88,7 @@ buildPythonPackage rec {
   };
 
   # TODO: manually add mupdf rpath until upstream fixes it
-  postInstall = lib.optionalString stdenv.isDarwin ''
+  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
     for lib in */*.so $out/${python.sitePackages}/*/*.so; do
       install_name_tool -add_rpath ${lib.getLib mupdf-cxx}/lib "$lib"
     done
@@ -175,7 +175,7 @@ buildPythonPackage rec {
       # Exclude lint tests
       "test_flake8"
     ]
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
       # darwin does not support OCR right now
       "test_tesseract"
     ];