Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pass: fixes .wrapped-pass in usage

When using `pass --help` for example the PROGRAM name is ".wrapped-pass"
instead of "pass".

+16 -1
+3 -1
pkgs/tools/security/pass/default.nix
··· 19 19 sha256 = "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik"; 20 20 }; 21 21 22 - patches = if stdenv.isDarwin then [ ./no-darwin-getopt.patch ] else null; 22 + patches = 23 + [ ./program-name.patch ] ++ 24 + stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch; 23 25 24 26 buildInputs = [ makeWrapper ]; 25 27
+13
pkgs/tools/security/pass/program-name.patch
··· 1 + diff --git a/src/password-store.sh b/src/password-store.sh 2 + index 6313384..6607a98 100755 3 + --- a/src/password-store.sh 4 + +++ b/src/password-store.sh 5 + @@ -573,7 +573,7 @@ cmd_git() { 6 + # END subcommand functions 7 + # 8 + 9 + -PROGRAM="${0##*/}" 10 + +PROGRAM="pass" 11 + COMMAND="$1" 12 + 13 + case "$1" in