From 6584540828242d15ab9f50831b47581d9ff793a2 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 2 Nov 2021 13:07:43 +0100 Subject: [PATCH] makeShell: make help message extensible Users can now override help and print more help messages alongside `nixBitcoinHelp`. --- helper/makeShell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper/makeShell.nix b/helper/makeShell.nix index 19386be..3e10418 100644 --- a/helper/makeShell.nix +++ b/helper/makeShell.nix @@ -22,7 +22,7 @@ pkgs.stdenv.mkDerivation { # 2. the shell is interactive if [[ -t 1 && $- == *i* ]]; then isInteractive=1; else isInteractive=; fi - help() { + nixBitcoinHelp() { echo "nix-bitcoin path: ${toString ../.}" echo echo "Available commands" @@ -46,6 +46,7 @@ pkgs.stdenv.mkDerivation { echo "update-nix-bitcoin" echo " Fetch and use the latest version of nix-bitcoin" } + help() { nixBitcoinHelp; } h() { help; } fetch-release() {