about summary refs log tree commit diff
path: root/pkgs/by-name/gn/gnucobol/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/gn/gnucobol/package.nix')
-rw-r--r--pkgs/by-name/gn/gnucobol/package.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/by-name/gn/gnucobol/package.nix b/pkgs/by-name/gn/gnucobol/package.nix
index 7c698954e5ab..75341f91bbb9 100644
--- a/pkgs/by-name/gn/gnucobol/package.nix
+++ b/pkgs/by-name/gn/gnucobol/package.nix
@@ -79,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
       aclocal
       automake
     ''
-    + lib.optionalString stdenv.isDarwin ''
+    + lib.optionalString stdenv.hostPlatform.isDarwin ''
       # when building with nix on darwin, configure will use GNU strip,
       # which fails due to using --strip-unneeded, which is not supported
       substituteInPlace configure --replace-fail '"GNU strip"' 'FAKE GNU strip'
@@ -87,7 +87,7 @@ stdenv.mkDerivation (finalAttrs: {
 
   # error: call to undeclared function 'xmlCleanupParser'
   # ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
-  env.CFLAGS = lib.optionalString stdenv.isDarwin "-Wno-error=implicit-function-declaration";
+  env.CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration";
 
   enableParallelBuilding = true;