6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
40 lines
895 B
Nix
40 lines
895 B
Nix
{ lib
|
|
, makeWrapper
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, gopass
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "git-credential-gopass";
|
|
version = "1.15.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gopasspw";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-x8hf1cZw+Hhizp8/vA8qJ+A6ERJUenjMeiuW8IFb/N0=";
|
|
};
|
|
|
|
vendorHash = "sha256-YZoz7B12/VhWZRTDEVs2P36FrZoZs4OdPJMkR9H7D5I=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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 ];
|
|
};
|
|
}
|