diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-05-05 20:51:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 20:51:49 +0200 |
commit | 40e863aeb31b74c84bac424d178d8ca30675522e (patch) | |
tree | 04217a2c2173be8e2333e5cdbc204d0ec4e808dc | |
parent | 23505114252a27e765a3148e8a05e7eb1bf6efc9 (diff) | |
parent | ae19e155a5bfae537d8c1e4ca4bd4de82ae3c42a (diff) | |
download | nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar.gz nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar.bz2 nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar.lz nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar.xz nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.tar.zst nixlib-40e863aeb31b74c84bac424d178d8ca30675522e.zip |
Merge pull request #85521 from rvolosatovs/feature/gopass-alias
gopass: Add passAlias parameter to derivation
-rw-r--r-- | pkgs/tools/security/gopass/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/tools/security/gopass/default.nix b/pkgs/tools/security/gopass/default.nix index 410b63ec7d75..8d7cb5810d9f 100644 --- a/pkgs/tools/security/gopass/default.nix +++ b/pkgs/tools/security/gopass/default.nix @@ -1,4 +1,11 @@ -{ stdenv, buildGoModule, fetchFromGitHub, git, gnupg, xclip, wl-clipboard, installShellFiles, makeWrapper }: +{ stdenv, makeWrapper +, buildGoModule, fetchFromGitHub, installShellFiles +, git +, gnupg +, xclip +, wl-clipboard +, passAlias ? false +}: buildGoModule rec { pname = "gopass"; @@ -28,6 +35,8 @@ buildGoModule rec { $out/bin/gopass completion $shell > gopass.$shell installShellCompletion gopass.$shell done + '' + stdenv.lib.optionalString passAlias '' + ln -s $bin/bin/gopass $bin/bin/pass ''; postFixup = '' @@ -39,7 +48,7 @@ buildGoModule rec { description = "The slightly more awesome Standard Unix Password Manager for Teams. Written in Go."; homepage = "https://www.gopass.pw/"; license = licenses.mit; - maintainers = with maintainers; [ andir ]; + maintainers = with maintainers; [ andir rvolosatovs ]; platforms = platforms.unix; longDescription = '' |