gopass-summon-provider: init at 1.12.0

This commit is contained in:
Nikolay Korotkiy 2022-01-15 10:55:13 +03:00
parent 4131e99160
commit eb76ab3511
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, makeWrapper
, buildGoModule
, fetchFromGitHub
, gopass
}:
buildGoModule rec {
pname = "gopass-summon-provider";
version = "1.12.0";
src = fetchFromGitHub {
owner = "gopasspw";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mRZXczIlW1s0VGZJ+KQue4Dz6XCXGfl56+g6iRv2lZg=";
};
vendorSha256 = "sha256-fiV4rtel2jOw6y/ukOZHeFuNVqxHS3rnYhXJ6JZ+a/8=";
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://www.gopass.pw/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
};
}

View file

@ -1939,6 +1939,8 @@ with pkgs;
git-credential-gopass = callPackage ../tools/security/gopass/git-credential.nix { };
gopass-summon-provider = callPackage ../tools/security/gopass/summon.nix { };
gosh = callPackage ../tools/security/gosh { };
gospider = callPackage ../tools/security/gospider { };