about summary refs log tree commit diff
path: root/pkgs/development/libraries/aribb25/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/aribb25/default.nix')
-rw-r--r--pkgs/development/libraries/aribb25/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aribb25/default.nix b/pkgs/development/libraries/aribb25/default.nix
index 743850c5fdc3..4079f6278235 100644
--- a/pkgs/development/libraries/aribb25/default.nix
+++ b/pkgs/development/libraries/aribb25/default.nix
@@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [
     autoreconfHook
     pkg-config
-  ] ++ lib.optional stdenv.isDarwin xcbuild;
-  buildInputs = if stdenv.isDarwin then [ PCSC ] else [ pcsclite ];
+  ] ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild;
+  buildInputs = if stdenv.hostPlatform.isDarwin then [ PCSC ] else [ pcsclite ];
 
   patches = let
     url = commit: "https://code.videolan.org/videolan/${pname}/-/commit/${commit}.diff";
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
   ];
 
   buildFlags =
-    lib.optional stdenv.isDarwin "pcsclite_CFLAGS=-I${PCSC}/Library/Frameworks/PCSC.framework/Headers";
+    lib.optional stdenv.hostPlatform.isDarwin "pcsclite_CFLAGS=-I${PCSC}/Library/Frameworks/PCSC.framework/Headers";
 
   meta = with lib; {
     description = "Sample implementation of the ARIB STD-B25 standard";