Unverified Commit f225300b authored by Austin Horstman's avatar Austin Horstman
Browse files

aribb25: format

parent 06823bc0
Loading
Loading
Loading
Loading
+27 −25
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitLab
, fetchpatch
, autoreconfHook
, pkg-config
, pcsclite
, PCSC
, xcbuild
{
  stdenv,
  lib,
  fetchFromGitLab,
  fetchpatch,
  autoreconfHook,
  pkg-config,
  pcsclite,
  PCSC,
  xcbuild,
}:

stdenv.mkDerivation rec {
@@ -29,9 +30,11 @@ stdenv.mkDerivation rec {
  ] ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild;
  buildInputs = if stdenv.hostPlatform.isDarwin then [ PCSC ] else [ pcsclite ];

  patches = let
  patches =
    let
      url = commit: "https://code.videolan.org/videolan/${pname}/-/commit/${commit}.diff";
  in [
    in
    [
      (fetchpatch {
        name = "make-cli-pipes-work-1.patch";
        url = url "0425184dbf3fdaf59854af5f530da88b2196a57b";
@@ -44,8 +47,7 @@ stdenv.mkDerivation rec {
      })
    ];

  buildFlags =
    lib.optional stdenv.hostPlatform.isDarwin "pcsclite_CFLAGS=-I${PCSC}/Library/Frameworks/PCSC.framework/Headers";
  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";