From 705d187a35b728e6091428be3fd07da576516e2a Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 29 Mar 2020 18:21:12 +0200 Subject: [PATCH] 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. --- examples/shell.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/shell.nix b/examples/shell.nix index 7a6b94a..3f0c7c9 100644 --- a/examples/shell.nix +++ b/examples/shell.nix @@ -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 ''; }