Unverified Commit 8ec0aa7c authored by Austin Horstman's avatar Austin Horstman
Browse files

aribb25: fix darwin

parent 2cc02eca
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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";