about summary refs log tree commit diff
path: root/pkgs/development/interpreters/perl/interpreter.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/interpreters/perl/interpreter.nix')
-rw-r--r--pkgs/development/interpreters/perl/interpreter.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/perl/interpreter.nix b/pkgs/development/interpreters/perl/interpreter.nix
index 2afdcded3db4b..23336cb8f4783 100644
--- a/pkgs/development/interpreters/perl/interpreter.nix
+++ b/pkgs/development/interpreters/perl/interpreter.nix
@@ -58,7 +58,7 @@ stdenv.mkDerivation (rec {
   # the libxcrypt port has been installed.
   #
   # Without libxcrypt, Perl will still find FreeBSD's crypt functions.
-  propagatedBuildInputs = lib.optional (enableCrypt && !stdenv.isFreeBSD) libxcrypt;
+  propagatedBuildInputs = lib.optional (enableCrypt && !stdenv.hostPlatform.isFreeBSD) libxcrypt;
 
   disallowedReferences = [ stdenv.cc ];
 
@@ -70,8 +70,8 @@ stdenv.mkDerivation (rec {
     ++ lib.optional (lib.versionOlder version "5.38.0") ./no-sys-dirs-5.31.patch
     ++ lib.optional (lib.versionAtLeast version "5.38.0") ./no-sys-dirs-5.38.0.patch
 
-    ++ lib.optional stdenv.isSunOS ./ld-shared.patch
-    ++ lib.optionals stdenv.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ]
+    ++ lib.optional stdenv.hostPlatform.isSunOS ./ld-shared.patch
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ]
     ++ lib.optional crossCompiling ./cross.patch;
 
   # This is not done for native builds because pwd may need to come from
@@ -107,7 +107,7 @@ stdenv.mkDerivation (rec {
       "-Dloclibpth=${libcLib}/lib"
     ]
     ++ lib.optionals ((builtins.match ''5\.[0-9]*[13579]\..+'' version) != null) [ "-Dusedevel" "-Uversiononly" ]
-    ++ lib.optional stdenv.isSunOS "-Dcc=gcc"
+    ++ lib.optional stdenv.hostPlatform.isSunOS "-Dcc=gcc"
     ++ lib.optional enableThreading "-Dusethreads"
     ++ lib.optional (!enableCrypt) "-A clear:d_crypt_r"
     ++ lib.optional stdenv.hostPlatform.isStatic "--all-static"
@@ -116,7 +116,7 @@ stdenv.mkDerivation (rec {
       "-Dman1dir=${placeholder "out"}/share/man/man1"
       "-Dman3dir=${placeholder "out"}/share/man/man3"
     ]
-    ++ lib.optionals (stdenv.isFreeBSD && crossCompiling && enableCrypt) [
+    ++ lib.optionals (stdenv.hostPlatform.isFreeBSD && crossCompiling && enableCrypt) [
       # https://github.com/Perl/perl5/issues/22295
       # configure cannot figure out that we have crypt automatically, but we really do
       "-Dd_crypt"
@@ -157,7 +157,7 @@ stdenv.mkDerivation (rec {
     GZIP_OS_CODE = AUTO_DETECT
     USE_ZLIB_NG  = False
     EOF
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace hints/darwin.sh --replace "env MACOSX_DEPLOYMENT_TARGET=10.3" ""
   '' + lib.optionalString (!enableThreading) ''
     # We need to do this because the bootstrap doesn't have a static libpthread