base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / gopass / git-credential.nix
blob624ff58b0d778707bae2753d74e87fac2d2a9898
1 { lib
2 , makeWrapper
3 , buildGoModule
4 , fetchFromGitHub
5 , gopass
6 }:
8 buildGoModule rec {
9   pname = "git-credential-gopass";
10   version = "1.15.14";
12   src = fetchFromGitHub {
13     owner = "gopasspw";
14     repo = "git-credential-gopass";
15     rev = "v${version}";
16     hash = "sha256-Kj7VIk81CzVbPMfGqm0z6APECF4IlqM0tbyogbWeBkg=";
17   };
19   vendorHash = "sha256-ZNHAjFzMMxodxb/AGVq8q+sP36qR5+8eaKdmmjIaMjs=";
21   subPackages = [ "." ];
23   nativeBuildInputs = [ makeWrapper ];
25   ldflags = [
26     "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
27   ];
29   postFixup = ''
30     wrapProgram $out/bin/git-credential-gopass \
31       --prefix PATH : "${lib.makeBinPath [ gopass ]}"
32   '';
34   meta = with lib; {
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";
41   };