mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
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"
|
||||
(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