15 src = fetchFromGitHub {
19 hash = "sha256-bfJIrWDFQIg0n1RDadARPHhQwE6i7mAMxE5GPYo4WU8=";
22 vendorHash = "sha256-HIB+p0yh7EWudLp1YGoClYbK3hkYEJZ+o+9BbOHE4+0=";
24 subPackages = [ "cmd/piv-agent" ];
29 "-X main.version=${version}"
30 "-X main.shortCommit=${src.rev}"
33 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
36 if stdenv.hostPlatform.isDarwin then [ darwin.apple_sdk.frameworks.PCSC ] else [ pcsclite ];
39 description = "SSH and GPG agent which you can use with your PIV hardware security device (e.g. a Yubikey)";
40 homepage = "https://github.com/smlx/piv-agent";
41 license = licenses.asl20;
43 mainProgram = "piv-agent";