Skip to content

Commit

Permalink
Merge #254: shell.nix: fix failing generate-secrets
Browse files Browse the repository at this point in the history
d2dbad2 shell.nix: fix failing generate-secrets (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK d2dbad2

Tree-SHA512: 7cf29fa9a658d12ad3aec00cc8f38660623e00950eebad92cef8ec4a28180eebfd0dfb1a56cdcd15389f31c4ce15302c241ac9aaba11267b8da0cd842a5701e2
  • Loading branch information
jonasnick committed Oct 20, 2020
2 parents 06cba7b + d2dbad2 commit 3693529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ with nixpkgs;
stdenv.mkDerivation rec {
name = "nix-bitcoin-environment";

buildInputs = [ nix-bitcoin.nixops19_09 nix-bitcoin.extra-container figlet ];
path = lib.makeBinPath [ nix-bitcoin.nixops19_09 nix-bitcoin.extra-container figlet ];

shellHook = ''
export NIX_PATH="nixpkgs=${nixpkgs-path}:nix-bitcoin=${toString nix-bitcoin-path}:."
export PATH="${path}''${PATH:+:}$PATH"
alias fetch-release="${toString nix-bitcoin-path}/helper/fetch-release"
# ssh-agent and nixops don't play well together (see
Expand All @@ -33,7 +35,7 @@ stdenv.mkDerivation rec {
export SSH_AUTH_SOCK=""
figlet "nix-bitcoin"
(mkdir -p secrets; cd secrets; ${nix-bitcoin.generate-secrets})
(mkdir -p secrets; cd secrets; env -i ${nix-bitcoin.generate-secrets})
# Don't run this hook when another nix-shell is run inside this shell
unset shellHook
Expand Down

0 comments on commit 3693529

Please sign in to comment.