forked from ElementsProject/peerswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
27 lines (25 loc) · 848 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
let
peerswap-pkgs = import ./packages.nix;
in
{ pkgs ? (import <nixpkgs> {})}:
let
execs = peerswap-pkgs.execs;
in with pkgs;
stdenv.mkDerivation rec {
name = "peerswap-dev-env";
nativeBuildInputs = [openssl];
buildInputs = [peerswap-pkgs.devpkgs ];
shellHook = ''
alias lightning-cli='${execs.clightning}/bin/lightning-cli'
alias lightningd='${execs.clightning}/bin/lightningd'
alias bitcoind='${execs.bitcoin}/bin/bitcoind'
alias bitcoin-cli='${execs.bitcoin}/bin/bitcoin-cli'
alias elementsd='${execs.elements}/bin/elementsd'
alias elements-cli='${execs.elements}/bin/elements-cli'
alias lightningd-dev='${execs.clightning-dev}/bin/lightningd-dev'
alias lnd='${execs.lnd}/bin/lnd'
alias lncli='${execs.lnd}/bin/lncli'
. ./contrib/startup_regtest.sh
setup_alias
'';
}