git-credential-gopass: init at 1.12.0 (#114457)
* maintainers: add benneti * git-credential-gopass: init at 1.12.0 * Update pkgs/tools/security/gopass/git-credential.nix * Update pkgs/tools/security/gopass/git-credential.nix Co-authored-by: WORLDofPEACE <worldofpeace@protonmail.ch>
This commit is contained in:
parent
a45a1b2318
commit
8e5a172d0c
|
@ -10768,4 +10768,10 @@
|
|||
github = "felixscheinost";
|
||||
githubId = 31761492;
|
||||
};
|
||||
benneti = {
|
||||
name = "Benedikt Tissot";
|
||||
email = "benedikt.tissot@googlemail.com";
|
||||
github = "benneti";
|
||||
githubId = 11725645;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, makeWrapper
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, gopass
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "git-credential-gopass";
|
||||
version = "1.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gopasspw";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-IvYxpUMclDAKJ/EkRbNrX8eIFyhtY9Q0B0RipweieZA=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-N6eU6KsnUrYBK90ydwUH8LNkR9KRjgc4ciGOGvy7pw8=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preBuild = ''
|
||||
buildFlagsArray+=(
|
||||
"-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev}"
|
||||
)
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/git-credential-gopass --prefix PATH : "${lib.makeBinPath [ gopass ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manage git credentials using gopass";
|
||||
homepage = "https://github.com/gopasspw/git-credential-gopass";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ benneti ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -1416,6 +1416,8 @@ in
|
|||
|
||||
gopass-jsonapi = callPackage ../tools/security/gopass/jsonapi.nix { };
|
||||
|
||||
git-credential-gopass = callPackage ../tools/security/gopass/git-credential.nix { };
|
||||
|
||||
gospider = callPackage ../tools/security/gospider { };
|
||||
|
||||
browserpass = callPackage ../tools/security/browserpass { };
|
||||
|
|
Loading…
Reference in New Issue