forked from mirrors/nixpkgs
pass: fixes .wrapped-pass in usage
When using `pass --help` for example the PROGRAM name is ".wrapped-pass" instead of "pass".
This commit is contained in:
parent
77f8f35d57
commit
53f7baa6b8
pkgs/tools/security/pass
|
@ -19,7 +19,9 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik";
|
sha256 = "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = if stdenv.isDarwin then [ ./no-darwin-getopt.patch ] else null;
|
patches =
|
||||||
|
[ ./program-name.patch ] ++
|
||||||
|
stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch;
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
|
13
pkgs/tools/security/pass/program-name.patch
Normal file
13
pkgs/tools/security/pass/program-name.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/password-store.sh b/src/password-store.sh
|
||||||
|
index 6313384..6607a98 100755
|
||||||
|
--- a/src/password-store.sh
|
||||||
|
+++ b/src/password-store.sh
|
||||||
|
@@ -573,7 +573,7 @@ cmd_git() {
|
||||||
|
# END subcommand functions
|
||||||
|
#
|
||||||
|
|
||||||
|
-PROGRAM="${0##*/}"
|
||||||
|
+PROGRAM="pass"
|
||||||
|
COMMAND="$1"
|
||||||
|
|
||||||
|
case "$1" in
|
Loading…
Reference in a new issue