3
0
Fork 0
forked from mirrors/nixpkgs

yubico-piv-tool: 2.3.0 -> 2.3.1

This commit is contained in:
Anthony Roussel 2023-02-08 13:33:29 +01:00
parent 87b9c4bde5
commit 84d8894b2b
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -1,14 +1,26 @@
{ lib, stdenv, fetchurl, pkg-config, openssl, check, pcsclite, PCSC, gengetopt, cmake
{ lib
, stdenv
, fetchurl
, pkg-config
, openssl
, check
, pcsclite
, PCSC
, gengetopt
, cmake
, withApplePCSC ? stdenv.isDarwin
, gitUpdater
, testers
, yubico-piv-tool
}:
stdenv.mkDerivation rec {
pname = "yubico-piv-tool";
version = "2.3.0";
version = "2.3.1";
src = fetchurl {
url = "https://developers.yubico.com/yubico-piv-tool/Releases/yubico-piv-tool-${version}.tar.gz";
hash = "sha256-oCoS2VRdHvehuZhgbYm3tlWl9aFDdzbPUdsIP4dvVak=";
hash = "sha256-2ona/YthhapjU0Z1P53bKa8pvEq9kt2B832dZWC11k4=";
};
postPatch = ''
@ -29,8 +41,21 @@ stdenv.mkDerivation rec {
configureFlags = [ "--with-backend=${if withApplePCSC then "macscard" else "pcsc"}" ];
passthru = {
updateScript = gitUpdater {
url = "https://github.com/Yubico/yubico-piv-tool.git";
rev-prefix = "yubico-piv-tool-";
};
tests.version = testers.testVersion {
inherit version;
package = yubico-piv-tool;
command = "yubico-piv-tool --version";
};
};
meta = with lib; {
homepage = "https://developers.yubico.com/yubico-piv-tool/";
changelog = "https://developers.yubico.com/yubico-piv-tool/Release_Notes.html";
description = ''
Used for interacting with the Privilege and Identification Card (PIV)
application on a YubiKey