d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
41 lines
1,003 B
Nix
41 lines
1,003 B
Nix
{ lib
|
|
, makeWrapper
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, gopass
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gopass-summon-provider";
|
|
version = "1.15.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gopasspw";
|
|
repo = "gopass-summon-provider";
|
|
rev = "v${version}";
|
|
hash = "sha256-JoSNWgwTnFQbnrwGIk6L5SwQeNg0RfLMULceqFF/XnA=";
|
|
};
|
|
|
|
vendorHash = "sha256-gb9AZBh5oUAiuCXbsvkmYxcHRNd9KLYq35nMd4iabKw=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/gopass-summon-provider \
|
|
--prefix PATH : "${lib.makeBinPath [ gopass ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Gopass Summon Provider";
|
|
homepage = "https://github.com/gopasspw/gopass-summon-provider";
|
|
changelog = "https://github.com/gopasspw/gopass-summon-provider/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
};
|
|
}
|