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:
parent
65039be656
commit
705d187a35
@ -32,5 +32,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
figlet "nix-bitcoin"
|
figlet "nix-bitcoin"
|
||||||
(mkdir -p secrets; cd secrets; ${nix-bitcoin.generate-secrets})
|
(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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user