about summary refs log tree commit diff
path: root/pkgs/tools/system/runit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/runit/default.nix')
-rw-r--r--pkgs/tools/system/runit/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/system/runit/default.nix b/pkgs/tools/system/runit/default.nix
index 2553c07cd6b5..10333d0f6035 100644
--- a/pkgs/tools/system/runit/default.nix
+++ b/pkgs/tools/system/runit/default.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
   doCheck = true;
 
   buildInputs = lib.optionals static [ stdenv.cc.libc stdenv.cc.libc.static ] ++
-    lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp;
+    lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.libs.utmp;
 
   postPatch = ''
     sed -i "s,\(#define RUNIT\) .*,\1 \"$out/bin/runit\"," src/runit.h
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
 
     # Both of these are originally hard-coded to gcc
     echo ${stdenv.cc.targetPrefix}cc > conf-cc
-    echo ${stdenv.cc.targetPrefix}cc ${lib.optionalString stdenv.isDarwin "-Xlinker -x "}> conf-ld
+    echo ${stdenv.cc.targetPrefix}cc ${lib.optionalString stdenv.hostPlatform.isDarwin "-Xlinker -x "}> conf-ld
   '';
 
   installPhase = ''