diff options
author | Andrew Childs <lorne@cons.org.nz> | 2019-07-02 16:16:04 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2019-07-02 16:16:56 +0900 |
commit | 86e3208ca31bc3dcddc412c59eae2e42107abcec (patch) | |
tree | c4d0229006592bd026c59403169ccbe3e4974ad1 /pkgs/tools/misc/yubico-piv-tool | |
parent | e8d00113e232230d7f53e23342b13acb230cfb56 (diff) |
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 b5c5aca0883b6..eb978de06e65e 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-1.7.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/; |