1 { lib, stdenv, fetchurl, pkg-config, openssl, check, pcsclite, PCSC
2 , withApplePCSC ? stdenv.isDarwin
5 stdenv.mkDerivation rec {
6 name = "yubico-piv-tool-2.0.0";
9 url = "https://developers.yubico.com/yubico-piv-tool/Releases/${name}.tar.gz";
10 sha256 = "124lhlim05gw32ydjh1yawqbnx6wdllz1ir9j00j09wji3m11rfs";
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ openssl check ]
15 ++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]);
17 configureFlags = [ "--with-backend=${if withApplePCSC then "macscard" else "pcsc"}" ];
20 homepage = "https://developers.yubico.com/yubico-piv-tool/";
22 Used for interacting with the Privilege and Identification Card (PIV)
23 application on a YubiKey
26 The Yubico PIV tool is used for interacting with the Privilege and
27 Identification Card (PIV) application on a YubiKey.
28 With it you may generate keys on the device, importing keys and
29 certificates, and create certificate requests, and other operations.
30 A shared library and a command-line tool is included.
32 license = licenses.bsd2;
33 platforms = platforms.all;