yubico-piv-tool: 2.5.2 -> 2.6.0 (#337210)

This commit is contained in:
Donovan Glover 2024-08-27 04:27:06 +00:00 committed by GitHub
commit c1d51d7e09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 29 deletions

View File

@ -1,31 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, openssl
, check
, pcsclite
, PCSC
, gengetopt
, help2man
, cmake
, zlib
, nix-update-script
, testers
, withApplePCSC ? stdenv.isDarwin
{
lib,
check,
cmake,
darwin,
fetchFromGitHub,
gengetopt,
help2man,
nix-update-script,
openssl,
pcsclite,
pkg-config,
stdenv,
testers,
zlib,
withApplePCSC ? stdenv.isDarwin,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "yubico-piv-tool";
version = "2.5.2";
version = "2.6.0";
outputs = [ "out" "dev" "man" ];
outputs = [
"out"
"dev"
"man"
];
src = fetchFromGitHub {
owner = "Yubico";
repo = "yubico-piv-tool";
rev = "refs/tags/yubico-piv-tool-${finalAttrs.version}";
hash = "sha256-SBVYr6OcWqT+WKOZgIeZ1TmqCbcGAjbq/HaWIwPduFw=";
hash = "sha256-53cgwXMzVKnouwHhbt6pODhjF2MH0sK5CPWpbZe71jE=";
};
postPatch = ''
@ -33,17 +38,16 @@ stdenv.mkDerivation (finalAttrs: {
'';
nativeBuildInputs = [
pkg-config
cmake
gengetopt
help2man
pkg-config
];
buildInputs = [
openssl
zlib.dev
]
++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]);
zlib
] ++ (if withApplePCSC then [ darwin.apple_sdk.frameworks.PCSC ] else [ pcsclite ]);
cmakeFlags = [
(lib.cmakeBool "GENERATE_MAN_PAGES" true)
@ -60,7 +64,10 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "yubico-piv-tool-([0-9.]+)$" ];
extraArgs = [
"--version-regex"
"yubico-piv-tool-([0-9.]+)$"
];
};
tests = {
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
@ -87,8 +94,14 @@ stdenv.mkDerivation (finalAttrs: {
'';
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ viraptor anthonyroussel ];
maintainers = with lib.maintainers; [
viraptor
anthonyroussel
];
mainProgram = "yubico-piv-tool";
pkgConfigModules = [ "ykcs11" "ykpiv" ];
pkgConfigModules = [
"ykcs11"
"ykpiv"
];
};
})

View File

@ -24270,10 +24270,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices SystemConfiguration;
};
yubico-piv-tool = callPackage ../tools/misc/yubico-piv-tool {
inherit (darwin.apple_sdk.frameworks) PCSC;
};
yubihsm-connector = callPackage ../tools/security/yubihsm-connector { };
yubikey-manager = callPackage ../tools/misc/yubikey-manager { };