examples/shell.nix: don't run shellHook on subsequent nix-shells

This avoids an extra delay and the unexpected creation of secrets when
run in another dir.

Needed for the 'fetch-release' script introduced in a later commit.
This commit is contained in:
Erik Arvstedt 2020-03-29 18:21:12 +02:00
parent 65039be656
commit 705d187a35
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 3 additions and 0 deletions

View File

@ -32,5 +32,8 @@ stdenv.mkDerivation rec {
figlet "nix-bitcoin"
(mkdir -p secrets; cd secrets; ${nix-bitcoin.generate-secrets})
# Don't run this hook when another nix-shell is run inside this shell
unset shellHook
'';
}