pcsc-tools: enable darwin build

This commit is contained in:
Anthony Roussel 2023-12-09 09:39:54 +01:00
parent 5b07009546
commit 848b539f97
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E
2 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,7 @@
, systemd , systemd
, dbus , dbus
, pcsclite , pcsclite
, PCSC
, wget , wget
, coreutils , coreutils
, perlPackages , perlPackages
@ -33,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
]; ];
buildInputs = [ dbus perlPackages.perl pcsclite ] buildInputs = [ dbus perlPackages.perl pcsclite ]
++ lib.optional stdenv.isDarwin PCSC
++ lib.optional stdenv.isLinux systemd; ++ lib.optional stdenv.isLinux systemd;
nativeBuildInputs = [ nativeBuildInputs = [
@ -89,6 +91,6 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
mainProgram = "pcsc_scan"; mainProgram = "pcsc_scan";
maintainers = with maintainers; [ peterhoeg anthonyroussel ]; maintainers = with maintainers; [ peterhoeg anthonyroussel ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
}) })

View file

@ -11980,7 +11980,9 @@ with pkgs;
pcsc-scm-scl011 = callPackage ../tools/security/pcsc-scm-scl011 { }; pcsc-scm-scl011 = callPackage ../tools/security/pcsc-scm-scl011 { };
pcsc-tools = callPackage ../tools/security/pcsc-tools { }; pcsc-tools = callPackage ../tools/security/pcsc-tools {
inherit (pkgs.darwin.apple_sdk.frameworks) PCSC;
};
ifdnfc = callPackage ../tools/security/ifdnfc { }; ifdnfc = callPackage ../tools/security/ifdnfc { };