14 src = fetchFromGitHub {
18 hash = "sha256-nHxtQaQ5Lc0QAJrWU6fUWViDwOKkxVyj9/B6XZ+Y0zw=";
21 vendorHash = "sha256-L5HuTYA01w3LUtSy7OVxG6QN5uQZ8LVYyrBcJQTkIUA=";
23 subPackages = [ "cmd/piv-agent" ];
25 ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.shortCommit=${src.rev}" ];
27 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
30 if stdenv.hostPlatform.isDarwin
31 then [ darwin.apple_sdk.frameworks.PCSC ]
35 description = "SSH and GPG agent which you can use with your PIV hardware security device (e.g. a Yubikey)";
36 homepage = "https://github.com/smlx/piv-agent";
37 license = licenses.asl20;
39 mainProgram = "piv-agent";