about summary refs log tree commit diff
path: root/pkgs/tools/package-management/nix/nix-perl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/package-management/nix/nix-perl.nix')
-rw-r--r--pkgs/tools/package-management/nix/nix-perl.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/package-management/nix/nix-perl.nix b/pkgs/tools/package-management/nix/nix-perl.nix
index 4c93fcef564a..50e342e96cad 100644
--- a/pkgs/tools/package-management/nix/nix-perl.nix
+++ b/pkgs/tools/package-management/nix/nix-perl.nix
@@ -47,7 +47,7 @@ in stdenv.mkDerivation (finalAttrs: {
     nix
     perl
     xz
-  ] ++ lib.optional (stdenv.isDarwin) Security;
+  ] ++ lib.optional (stdenv.hostPlatform.isDarwin) Security;
 
   # Not cross-safe since Nix checks for curl/perl via
   # NEED_PROG/find_program, but both seem to be needed at runtime
@@ -65,7 +65,7 @@ in stdenv.mkDerivation (finalAttrs: {
   ]);
 
   # `perlPackages.Test2Harness` is marked broken for Darwin
-  doCheck = !stdenv.isDarwin;
+  doCheck = !stdenv.hostPlatform.isDarwin;
 
   nativeCheckInputs = [
     perl.pkgs.Test2Harness