about summary refs log tree commit diff
path: root/pkgs/tools/misc/abduco/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/abduco/default.nix')
-rw-r--r--pkgs/tools/misc/abduco/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/abduco/default.nix b/pkgs/tools/misc/abduco/default.nix
index 011f186bbbe2..eef5fe0df344 100644
--- a/pkgs/tools/misc/abduco/default.nix
+++ b/pkgs/tools/misc/abduco/default.nix
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
     "cp ${writeText "config.def.h" conf} config.def.h";
 
   installFlags = [ "install-completion" ];
-  CFLAGS = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
+  CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
 
   patches = [
     # https://github.com/martanne/abduco/pull/22