aribb25: fix darwin

This commit is contained in:
Austin Horstman 2024-11-04 17:19:31 -06:00
parent 2cc02eca4d
commit 8ec0aa7cb6
No known key found for this signature in database

View File

@ -28,7 +28,11 @@ stdenv.mkDerivation rec {
pkg-config 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 = patches =
let 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; { meta = with lib; {
description = "Sample implementation of the ARIB STD-B25 standard"; description = "Sample implementation of the ARIB STD-B25 standard";
homepage = "https://code.videolan.org/videolan/aribb25"; homepage = "https://code.videolan.org/videolan/aribb25";