about summary refs log tree commit diff
path: root/pkgs/tools/misc/pgbadger/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/pgbadger/default.nix')
-rw-r--r--pkgs/tools/misc/pgbadger/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/pgbadger/default.nix b/pkgs/tools/misc/pgbadger/default.nix
index 27c532e8144c..d25b4db9068f 100644
--- a/pkgs/tools/misc/pgbadger/default.nix
+++ b/pkgs/tools/misc/pgbadger/default.nix
@@ -32,7 +32,7 @@ buildPerlPackage rec {
   # pgbadger has too many `-Idir` flags on its shebang line on Darwin,
   # causing the build to fail when trying to generate the documentation.
   # Rewrite the -I flags in `use lib` form.
-  preBuild = lib.optionalString stdenv.isDarwin ''
+  preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
     shortenPerlShebang ./pgbadger
   '';
 
@@ -46,7 +46,7 @@ buildPerlPackage rec {
     TextCSV_XS
   ];
 
-  nativeBuildInputs = lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
+  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ shortenPerlShebang ];
 
   nativeCheckInputs = [
     bzip2