about summary refs log tree commit diff
path: root/pkgs/tools/misc/rlwrap/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/rlwrap/default.nix')
-rw-r--r--pkgs/tools/misc/rlwrap/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/rlwrap/default.nix b/pkgs/tools/misc/rlwrap/default.nix
index f1c2d6a58971..68baa3318871 100644
--- a/pkgs/tools/misc/rlwrap/default.nix
+++ b/pkgs/tools/misc/rlwrap/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ readline ];
 
-  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=implicit-function-declaration";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration";
 
   meta = with lib; {
     description = "Readline wrapper for console programs";