git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #85521 from rvolosatovs/feature/gopass-alias

gopass: Add passAlias parameter to derivation

commit40e863aeb31b74c84bac424d178d8ca30675522e authorAndreas Rammhold <andreas@rammhold.de> dateTue 5 May 2020, 20:51 (7 years ago) parent2350511ae19e15
1 file changed+11−2
pkgs/tools/security/gopass/default.nix+11−2
pkgs/tools/security/gopass/default.nix+11−2
@@ -1,4 +1,11 @@
1−{ stdenv, buildGoModule, fetchFromGitHub, git, gnupg, xclip, wl-clipboard, installShellFiles, makeWrapper }:
1+{ stdenv, makeWrapper
2+, buildGoModule, fetchFromGitHub, installShellFiles
3+, git
4+, gnupg
5+, xclip
6+, wl-clipboard
7+, passAlias ? false
8+}:
29
310buildGoModule rec {
411 pname = "gopass";
@@ -28,6 +35,8 @@ buildGoModule rec {
2835 $out/bin/gopass completion $shell > gopass.$shell
2936 installShellCompletion gopass.$shell
3037 done
38+ '' + stdenv.lib.optionalString passAlias ''
39+ ln -s $bin/bin/gopass $bin/bin/pass
3140 '';
3241
3342 postFixup = ''
@@ -39,7 +48,7 @@ buildGoModule rec {
3948 description = "The slightly more awesome Standard Unix Password Manager for Teams. Written in Go.";
4049 homepage = "https://www.gopass.pw/";
4150 license = licenses.mit;
42− maintainers = with maintainers; [ andir ];
51+ maintainers = with maintainers; [ andir rvolosatovs ];
4352 platforms = platforms.unix;
4453
4554 longDescription = ''