makeShell: improve update-nix-bitcoin

- Don't overwrite `nix-bitcoin-release.nix` on errors
- Show a message to indicate whether `nix-bitcoin-release.nix` was
  updated
- Don't start a shell when called noninteractively

Also, update `usage.md` and reformat `shell.nix`.
This commit is contained in:
Erik Arvstedt 2021-09-13 10:23:49 +02:00
parent 52aaa8388e
commit 77af2e4538
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 25 additions and 11 deletions

View file

@ -4,5 +4,5 @@ in
import "${nix-bitcoin}/helper/makeShell.nix" {
configDir = ./.;
# Set this to modify your shell
# extraShellInitCmds = (pkgs: ''<my bash code>'');
# extraShellInitCmds = pkgs: ''<my bash code>'';
}