about summary refs log tree commit diff
path: root/pkgs/development/libraries/libfido2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libfido2/default.nix')
-rw-r--r--pkgs/development/libraries/libfido2/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libfido2/default.nix b/pkgs/development/libraries/libfido2/default.nix
index 04bfadeef979..1a68b5eb6eb1 100644
--- a/pkgs/development/libraries/libfido2/default.nix
+++ b/pkgs/development/libraries/libfido2/default.nix
@@ -25,9 +25,9 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake pkg-config ];
 
   buildInputs = [ libcbor zlib ]
-    ++ lib.optionals stdenv.isDarwin [ hidapi ]
-    ++ lib.optionals stdenv.isLinux [ udev ]
-    ++ lib.optionals (stdenv.isLinux && withPcsclite) [ pcsclite ];
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ hidapi ]
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ udev ]
+    ++ lib.optionals (stdenv.hostPlatform.isLinux && withPcsclite) [ pcsclite ];
 
   propagatedBuildInputs = [ openssl ];
 
@@ -36,11 +36,11 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
     "-DCMAKE_INSTALL_LIBDIR=lib"
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     "-DUSE_HIDAPI=1"
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     "-DNFC_LINUX=1"
-  ] ++ lib.optionals (stdenv.isLinux && withPcsclite) [
+  ] ++ lib.optionals (stdenv.hostPlatform.isLinux && withPcsclite) [
     "-DUSE_PCSC=1"
   ];