diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-13 08:34:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 08:34:05 -0500 |
commit | 43d1c44e49cc6261c06abd418056fcbdf31ea6cd (patch) | |
tree | a5769d2e6e43c89f0231a429fb965e924974e339 /pkgs/tools/misc/yubico-piv-tool | |
parent | cc1f45ba65d7431990226d71668f28821aa6f3c4 (diff) | |
parent | 86e3208ca31bc3dcddc412c59eae2e42107abcec (diff) |
Merge pull request #64114 from thefloweringash/yubico-piv-tool-mac
yubico-piv-tool: support Apple PCSC, enable by default
Diffstat (limited to 'pkgs/tools/misc/yubico-piv-tool')
-rw-r--r-- | pkgs/tools/misc/yubico-piv-tool/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/tools/misc/yubico-piv-tool/default.nix b/pkgs/tools/misc/yubico-piv-tool/default.nix index f081f94a14756..39150cfed7e16 100644 --- a/pkgs/tools/misc/yubico-piv-tool/default.nix +++ b/pkgs/tools/misc/yubico-piv-tool/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, pkgconfig, openssl, pcsclite, check }: +{ stdenv, fetchurl, pkgconfig, openssl, check, pcsclite, PCSC +, withApplePCSC ? stdenv.isDarwin +}: stdenv.mkDerivation rec { name = "yubico-piv-tool-2.0.0"; @@ -9,9 +11,10 @@ stdenv.mkDerivation rec { }; 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; { homepage = https://developers.yubico.com/yubico-piv-tool/; |