c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
41 lines
910 B
Nix
41 lines
910 B
Nix
{ lib
|
|
, makeWrapper
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, gopass
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gopass-jsonapi";
|
|
version = "1.15.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gopasspw";
|
|
repo = "gopass-jsonapi";
|
|
rev = "v${version}";
|
|
hash = "sha256-ZSX5g1agmnPU8Nlmptr3GVrjtPPKbDxouSjz9ulSW44=";
|
|
};
|
|
|
|
vendorHash = "sha256-JWOBGTJFzihoznYFzcgjayAzNof6Ob5u3Jfx2a6zwEk=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/gopass-jsonapi \
|
|
--prefix PATH : "${gopass.wrapperPath}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Enables communication with gopass via JSON messages";
|
|
homepage = "https://www.gopass.pw/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ maxhbr ];
|
|
};
|
|
}
|