21 lines
422 B
Nix
21 lines
422 B
Nix
|
let
|
||
|
# Pin nixpkgs
|
||
|
nixpkgs = builtins.fetchGit {
|
||
|
url = "https://github.com/nixos/nixpkgs-channels";
|
||
|
ref = "nixos-18.09";
|
||
|
rev = "0396345b79436f54920f7eb651ab42acf2eb7973";
|
||
|
};
|
||
|
in
|
||
|
with import nixpkgs { };
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "nix-bitcoin-environment";
|
||
|
|
||
|
buildInputs = [ pkgs.nixops pkgs.figlet pkgs.apg ];
|
||
|
|
||
|
shellHook = ''
|
||
|
figlet "nix-bitcoin"
|
||
|
./secrets/generate_secrets.sh
|
||
|
'';
|
||
|
}
|