9 pname = "git-credential-gopass";
12 src = fetchFromGitHub {
14 repo = "git-credential-gopass";
16 hash = "sha256-Kj7VIk81CzVbPMfGqm0z6APECF4IlqM0tbyogbWeBkg=";
19 vendorHash = "sha256-ZNHAjFzMMxodxb/AGVq8q+sP36qR5+8eaKdmmjIaMjs=";
21 subPackages = [ "." ];
23 nativeBuildInputs = [ makeWrapper ];
26 "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
30 wrapProgram $out/bin/git-credential-gopass \
31 --prefix PATH : "${lib.makeBinPath [ gopass ]}"
35 description = "Manage git credentials using gopass";
36 homepage = "https://github.com/gopasspw/git-credential-gopass";
37 changelog = "https://github.com/gopasspw/git-credential-gopass/blob/v${version}/CHANGELOG.md";
38 license = licenses.mit;
39 maintainers = with maintainers; [ benneti ];
40 mainProgram = "git-credential-gopass";