about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/clightning/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/blockchains/clightning/default.nix')
-rw-r--r--pkgs/applications/blockchains/clightning/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/blockchains/clightning/default.nix b/pkgs/applications/blockchains/clightning/default.nix
index ff049b69d7bc..9f84685e8c10 100644
--- a/pkgs/applications/blockchains/clightning/default.nix
+++ b/pkgs/applications/blockchains/clightning/default.nix
@@ -35,13 +35,13 @@ stdenv.mkDerivation rec {
   # as libwally-core detects the host as darwin and tries to add the -static
   # option to libtool, also we have to add the modified gsed package.
   nativeBuildInputs = [ autoconf autogen automake gettext libtool lowdown protobuf py3 unzip which ]
-    ++ lib.optionals stdenv.isDarwin [ cctools darwin.autoSignDarwinBinariesHook ];
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.autoSignDarwinBinariesHook ];
 
   buildInputs = [ gmp libsodium sqlite zlib jq ];
 
   # this causes some python trouble on a darwin host so we skip this step.
   # also we have to tell libwally-core to use sed instead of gsed.
-  postPatch = if !stdenv.isDarwin then ''
+  postPatch = if !stdenv.hostPlatform.isDarwin then ''
     patchShebangs \
       tools/generate-wire.py \
       tools/update-mocks.sh \
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
   # workaround for build issue, happens only x86_64-darwin, not aarch64-darwin
   # ccan/ccan/fdpass/fdpass.c:16:8: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
   #                 char buf[CMSG_SPACE(sizeof(fd))];
-  env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) "-Wno-error=gnu-folding-constant";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) "-Wno-error=gnu-folding-constant";
 
   # The `clnrest` plugin requires a Python environment to run
   postInstall = ''