mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 21:58:33 +00:00
Merge pull request #85521 from rvolosatovs/feature/gopass-alias
gopass: Add passAlias parameter to derivation
This commit is contained in:
commit
40e863aeb3
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user