gopass: 1.8.6 -> 1.9.0

Changelog: https://github.com/gopasspw/gopass/releases/tag/v1.9.0
This commit is contained in:
Mario Rodas 2020-05-01 16:20:00 -05:00
parent bd6736965a
commit 47b57c4605
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -1,10 +1,8 @@
{ stdenv, buildGoPackage, fetchFromGitHub, git, gnupg, xclip, wl-clipboard, installShellFiles, makeWrapper }: { stdenv, buildGoModule, fetchFromGitHub, git, gnupg, xclip, wl-clipboard, installShellFiles, makeWrapper }:
buildGoPackage rec { buildGoModule rec {
pname = "gopass"; pname = "gopass";
version = "1.8.6"; version = "1.9.0";
goPackagePath = "github.com/gopasspw/gopass";
nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles makeWrapper ];
@ -12,9 +10,13 @@ buildGoPackage rec {
owner = "gopasspw"; owner = "gopasspw";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0v3sx9hb03bdn4rvsv2r0jzif6p1rx47hrkpsbnwva31k396mck2"; sha256 = "1cssiglhxnrk1wl8phqkhmljqig5ms5a23sdzf8lywk5f6w2gayh";
}; };
modSha256 = "01p3zv6dq1l68in1qqvlsh7i3ydhhanf54dyf7288x35js8wnmqa";
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev}" ];
wrapperPath = stdenv.lib.makeBinPath ([ wrapperPath = stdenv.lib.makeBinPath ([
git git
gnupg gnupg
@ -23,13 +25,13 @@ buildGoPackage rec {
postInstall = '' postInstall = ''
for shell in bash fish zsh; do for shell in bash fish zsh; do
$bin/bin/gopass completion $shell > gopass.$shell $out/bin/gopass completion $shell > gopass.$shell
installShellCompletion gopass.$shell installShellCompletion gopass.$shell
done done
''; '';
postFixup = '' postFixup = ''
wrapProgram $bin/bin/gopass \ wrapProgram $out/bin/gopass \
--prefix PATH : "${wrapperPath}" --prefix PATH : "${wrapperPath}"
''; '';