Merge pull request #86503 from marsam/update-gopass
This commit is contained in:
commit
1e5db81e53
@ -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}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user