aribb25: fix darwin

This commit is contained in:
Austin Horstman
2024-11-04 19:50:20 -06:00
parent 2cc02eca4d
commit 8ec0aa7cb6
@@ -28,7 +28,11 @@ stdenv.mkDerivation rec {
pkg-config
];
buildInputs = if stdenv.hostPlatform.isDarwin then [ PCSC ] else [ pcsclite ];
buildInputs =
lib.optionals stdenv.hostPlatform.isDarwin [ PCSC ]
++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-deprecated-non-prototype";
patches =
let
@@ -47,8 +51,6 @@ stdenv.mkDerivation rec {
})
];
buildFlags = 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";
homepage = "https://code.videolan.org/videolan/aribb25";