about summary refs log tree commit diff
path: root/pkgs/tools/security/yubihsm-shell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/yubihsm-shell/default.nix')
-rw-r--r--pkgs/tools/security/yubihsm-shell/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/security/yubihsm-shell/default.nix b/pkgs/tools/security/yubihsm-shell/default.nix
index 8567798ea82c..90af2f22068a 100644
--- a/pkgs/tools/security/yubihsm-shell/default.nix
+++ b/pkgs/tools/security/yubihsm-shell/default.nix
@@ -47,18 +47,18 @@ stdenv.mkDerivation rec {
     libedit
     curl
     openssl
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     pcsclite.dev
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     darwin.apple_sdk.frameworks.PCSC
     libiconv
   ];
 
-  preBuild = lib.optionalString stdenv.isLinux ''
+  preBuild = lib.optionalString stdenv.hostPlatform.isLinux ''
     NIX_CFLAGS_COMPILE="$(pkg-config --cflags libpcsclite) $NIX_CFLAGS_COMPILE"
   '';
 
-  cmakeFlags = lib.optionals stdenv.isDarwin [
+  cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
     "-DDISABLE_LTO=ON"
   ];