about summary refs log tree commit diff
path: root/pkgs/development/libraries/nss/generic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/nss/generic.nix')
-rw-r--r--pkgs/development/libraries/nss/generic.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/nss/generic.nix b/pkgs/development/libraries/nss/generic.nix
index 7ef488cca4c1e..9e54ddda866f7 100644
--- a/pkgs/development/libraries/nss/generic.nix
+++ b/pkgs/development/libraries/nss/generic.nix
@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
         --enable-libpkix \
         -j $NIX_BUILD_CORES \
         ${lib.optionalString enableFIPS "--enable-fips"} \
-        ${lib.optionalString stdenv.isDarwin "--clang"} \
+        ${lib.optionalString stdenv.hostPlatform.isDarwin "--clang"} \
         ${lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) "--disable-tests"}
 
       runHook postBuild
@@ -155,7 +155,7 @@ stdenv.mkDerivation rec {
     (lib.optionalString enableFIPS (''
       for libname in freebl3 nssdbm3 softokn3
       do libfile="$out/lib/lib$libname${stdenv.hostPlatform.extensions.sharedLibrary}"'' +
-    (if stdenv.isDarwin
+    (if stdenv.hostPlatform.isDarwin
     then ''
       DYLD_LIBRARY_PATH=$out/lib:${nspr.out}/lib \
     '' else ''