diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-05-01 16:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-05-01 16:20:00 -0500 |
commit | 47b57c4605bb9d81d65ecd34eabbe6b15198aff8 (patch) | |
tree | 9d1e1556a119f086026c365dd19ea5c0aeaeae73 /pkgs/tools/security/gopass | |
parent | bd6736965a900e591cf78e1d96d132170feb8a7c (diff) | |
download | nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar.gz nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar.bz2 nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar.lz nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar.xz nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.tar.zst nixpkgs-47b57c4605bb9d81d65ecd34eabbe6b15198aff8.zip |
gopass: 1.8.6 -> 1.9.0
Changelog: https://github.com/gopasspw/gopass/releases/tag/v1.9.0
Diffstat (limited to 'pkgs/tools/security/gopass')
-rw-r--r-- | pkgs/tools/security/gopass/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/tools/security/gopass/default.nix b/pkgs/tools/security/gopass/default.nix index cb640fb1639..410b63ec7d7 100644 --- a/pkgs/tools/security/gopass/default.nix +++ b/pkgs/tools/security/gopass/default.nix @@ -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"; - version = "1.8.6"; - - goPackagePath = "github.com/gopasspw/gopass"; + version = "1.9.0"; nativeBuildInputs = [ installShellFiles makeWrapper ]; @@ -12,9 +10,13 @@ buildGoPackage rec { owner = "gopasspw"; repo = pname; 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 ([ git gnupg @@ -23,13 +25,13 @@ buildGoPackage rec { postInstall = '' for shell in bash fish zsh; do - $bin/bin/gopass completion $shell > gopass.$shell + $out/bin/gopass completion $shell > gopass.$shell installShellCompletion gopass.$shell done ''; postFixup = '' - wrapProgram $bin/bin/gopass \ + wrapProgram $out/bin/gopass \ --prefix PATH : "${wrapperPath}" ''; |