about summary refs log tree commit diff
path: root/pkgs/tools/graphics/feedgnuplot/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/graphics/feedgnuplot/default.nix')
-rw-r--r--pkgs/tools/graphics/feedgnuplot/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/graphics/feedgnuplot/default.nix b/pkgs/tools/graphics/feedgnuplot/default.nix
index 6503a2887ab2f..423d8d8d92f3e 100644
--- a/pkgs/tools/graphics/feedgnuplot/default.nix
+++ b/pkgs/tools/graphics/feedgnuplot/default.nix
@@ -30,7 +30,7 @@ perlPackages.buildPerlPackage rec {
 
   outputs = [ "out" ];
 
-  nativeBuildInputs = [ makeWrapper installShellFiles ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
+  nativeBuildInputs = [ makeWrapper installShellFiles ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
 
   buildInputs = [ gnuplot perl ]
     ++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
@@ -45,7 +45,7 @@ perlPackages.buildPerlPackage rec {
   # Tests require gnuplot 4.6.4 and are completely skipped with gnuplot 5.
   doCheck = false;
 
-  postInstall = lib.optionalString stdenv.isDarwin ''
+  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
     shortenPerlShebang $out/bin/feedgnuplot
   '' + ''
     wrapProgram $out/bin/feedgnuplot \