about summary refs log tree commit diff
path: root/pkgs/development/compilers/c0/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/c0/default.nix')
-rw-r--r--pkgs/development/compilers/c0/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/c0/default.nix b/pkgs/development/compilers/c0/default.nix
index 4c3f5ba201dea..8dbb1627db3a7 100644
--- a/pkgs/development/compilers/c0/default.nix
+++ b/pkgs/development/compilers/c0/default.nix
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
       --replace '`../get_version.sh`' '${version}' \
       --replace '`date`' '1970-01-01T00:00:00Z' \
       --replace '`hostname`' 'nixpkgs'
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     for f in cc0/compiler/bin/coin-o0-support cc0/compiler/bin/cc0-o0-support; do
       substituteInPlace $f --replace '$(brew --prefix gnu-getopt)' '${getopt}'
     done
@@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
     getopt
     mlton
     pkg-config
-  ] ++ lib.optionals stdenv.isDarwin [ darwin.sigtool ];
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ];
 
   buildInputs = [
     boehmgc
@@ -80,6 +80,6 @@ stdenv.mkDerivation rec {
     platforms = platforms.unix;
     # line 1: ../../bin/wrappergen: cannot execute: required file not found
     # make[2]: *** [../../lib.mk:83:
-    broken = stdenv.isLinux;
+    broken = stdenv.hostPlatform.isLinux;
   };
 }