Merge pull request #64114 from thefloweringash/yubico-piv-tool-mac
yubico-piv-tool: support Apple PCSC, enable by default
This commit is contained in:
commit
43d1c44e49
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, openssl, pcsclite, check }:
|
{ stdenv, fetchurl, pkgconfig, openssl, check, pcsclite, PCSC
|
||||||
|
, withApplePCSC ? stdenv.isDarwin
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "yubico-piv-tool-2.0.0";
|
name = "yubico-piv-tool-2.0.0";
|
||||||
@ -9,9 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ openssl pcsclite check ];
|
buildInputs = [ openssl check ]
|
||||||
|
++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]);
|
||||||
|
|
||||||
configureFlags = [ "--with-backend=pcsc" ];
|
configureFlags = [ "--with-backend=${if withApplePCSC then "macscard" else "pcsc"}" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://developers.yubico.com/yubico-piv-tool/;
|
homepage = https://developers.yubico.com/yubico-piv-tool/;
|
||||||
|
@ -14902,7 +14902,9 @@ in
|
|||||||
|
|
||||||
yubico-pam = callPackage ../development/libraries/yubico-pam { };
|
yubico-pam = callPackage ../development/libraries/yubico-pam { };
|
||||||
|
|
||||||
yubico-piv-tool = callPackage ../tools/misc/yubico-piv-tool { };
|
yubico-piv-tool = callPackage ../tools/misc/yubico-piv-tool {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) PCSC;
|
||||||
|
};
|
||||||
|
|
||||||
yubikey-manager = callPackage ../tools/misc/yubikey-manager { };
|
yubikey-manager = callPackage ../tools/misc/yubikey-manager { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user