about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/alfis/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/blockchains/alfis/default.nix')
-rw-r--r--pkgs/applications/blockchains/alfis/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/blockchains/alfis/default.nix b/pkgs/applications/blockchains/alfis/default.nix
index 776aa155a2fe..ad40bbef75c9 100644
--- a/pkgs/applications/blockchains/alfis/default.nix
+++ b/pkgs/applications/blockchains/alfis/default.nix
@@ -38,9 +38,9 @@ rustPlatform.buildRustPackage rec {
     makeWrapper
   ];
   buildInputs =
-    lib.optional stdenv.isDarwin Security
-    ++ lib.optional (withGui && stdenv.isLinux) webkitgtk
-    ++ lib.optionals (withGui && stdenv.isDarwin) [
+    lib.optional stdenv.hostPlatform.isDarwin Security
+    ++ lib.optional (withGui && stdenv.hostPlatform.isLinux) webkitgtk
+    ++ lib.optionals (withGui && stdenv.hostPlatform.isDarwin) [
       Cocoa
       WebKit
     ];
@@ -54,7 +54,7 @@ rustPlatform.buildRustPackage rec {
     "--skip=dns::client::tests::test_udp_client"
   ];
 
-  postInstall = lib.optionalString (withGui && stdenv.isLinux) ''
+  postInstall = lib.optionalString (withGui && stdenv.hostPlatform.isLinux) ''
     wrapProgram $out/bin/alfis \
       --prefix PATH : ${lib.makeBinPath [ zenity ]}
   '';
@@ -66,6 +66,6 @@ rustPlatform.buildRustPackage rec {
     maintainers = with lib.maintainers; [ misuzu ];
     platforms = lib.platforms.unix;
     mainProgram = "alfis";
-    broken = withGui && stdenv.isDarwin;
+    broken = withGui && stdenv.hostPlatform.isDarwin;
   };
 }