about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/besu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/blockchains/besu/default.nix')
-rw-r--r--pkgs/applications/blockchains/besu/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/blockchains/besu/default.nix b/pkgs/applications/blockchains/besu/default.nix
index ef985a2806b7..3c48f930a625 100644
--- a/pkgs/applications/blockchains/besu/default.nix
+++ b/pkgs/applications/blockchains/besu/default.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation (finalAttrs: rec {
     sha256 = "sha256-CC24z0+2dSeqDddX5dJUs7SX9QJ8Iyh/nAp0pqdDvwg=";
   };
 
-  buildInputs = lib.optionals stdenv.isLinux [ jemalloc ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ jemalloc ];
   nativeBuildInputs = [ makeWrapper ];
 
   installPhase = ''
@@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: rec {
     cp -r lib $out/
     wrapProgram $out/bin/${pname} \
       --set JAVA_HOME "${jre}" \
-      --suffix ${if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"} : ${lib.makeLibraryPath buildInputs}
+      --suffix ${if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"} : ${lib.makeLibraryPath buildInputs}
   '';
 
   passthru.tests = {