Merge pull request #85521 from rvolosatovs/feature/gopass-alias

gopass: Add passAlias parameter to derivation
This commit is contained in:
Andreas Rammhold 2020-05-05 20:51:49 +02:00 committed by GitHub
commit 40e863aeb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ''