2019-01-01 12:17:07 -08:00
|
|
|
let
|
|
|
|
# Pin nixpkgs
|
|
|
|
nixpkgs = builtins.fetchGit {
|
|
|
|
url = "https://github.com/nixos/nixpkgs-channels";
|
|
|
|
ref = "nixos-18.09";
|
2019-01-13 12:58:30 -08:00
|
|
|
rev = "001b34abcb4d7f5cade707f7fd74fa27cbabb80b";
|
2019-01-01 12:17:07 -08:00
|
|
|
};
|
|
|
|
in
|
|
|
|
with import nixpkgs { };
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nix-bitcoin-environment";
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.nixops pkgs.figlet pkgs.apg ];
|
|
|
|
|
|
|
|
shellHook = ''
|
2019-01-03 14:02:10 -08:00
|
|
|
export NIX_PATH="nixpkgs=${nixpkgs}:."
|
2019-01-01 12:17:07 -08:00
|
|
|
figlet "nix-bitcoin"
|
|
|
|
./secrets/generate_secrets.sh
|
|
|
|
'';
|
|
|
|
}
|