Unverified Commit e7ee36d0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #215299 from anthonyroussel/yubico-piv-tool_2_3_1

yubico-piv-tool: 2.3.0 -> 2.3.1
parents 263a15e1 84d8894b
Loading
Loading
Loading
Loading
+28 −3
Original line number Diff line number Diff line
{ 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