4ff2823dbf
Diff: https://github.com/gopasspw/gopass-jsonapi/compare/v1.15.5...v1.15.7 Changelog: https://github.com/gopasspw/gopass-jsonapi/blob/v1.15.7/CHANGELOG.md
42 lines
1,022 B
Nix
42 lines
1,022 B
Nix
{ lib
|
|
, makeWrapper
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, gopass
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gopass-jsonapi";
|
|
version = "1.15.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gopasspw";
|
|
repo = "gopass-jsonapi";
|
|
rev = "v${version}";
|
|
hash = "sha256-lwY5uc6eKqXO8FbvzlrpQY0y5AEcV0RQFvvnE+At6z0=";
|
|
};
|
|
|
|
vendorHash = "sha256-BKwgP22l4t4jaAHHh+ZD/2nroCtAp/A6DqHt+9HZzKw=";
|
|
|
|
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://github.com/gopasspw/gopass-jsonapi";
|
|
changelog = "https://github.com/gopasspw/gopass-jsonapi/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ maxhbr ];
|
|
};
|
|
}
|