Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

fix: darwin builds and shell aliases #5

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
let
flakeboxLib = flakebox.lib.${system} { };
pkgs = import nixpkgs { inherit system; };
bitcoind = pkgs.bitcoind.overrideDerivation (oldAttrs: { doCheck = false; doInstallCheck = false; });

cashu_rs_mint_dir = "/tmp/cashu-rs-mint";
bitcoin_dir = cashu_rs_mint_dir + "/bitcoin";
Expand All @@ -26,17 +27,17 @@
devShells = flakeboxLib.mkShells {
buildInputs = [
pkgs.clightning
pkgs.bitcoind
bitcoind
];
shellHook = ''

mkdir -p ${cashu_rs_mint_dir}
mkdir -p ${bitcoin_dir}
mkdir -p ${lightning_dir}

alias btc="bitcoin-cli -regtest -datadir=${bitcoin_dir}"
alias ln1="lightning-cli --lightning-dir=${lightning_dir}/ln_1 --regtest"
alias ln2="lightning-cli --lightning-dir=${lightning_dir}/ln_2 --regtest"
alias btc="${bitcoind}/bin/bitcoin-cli -regtest -datadir=${bitcoin_dir}"
alias ln1="${pkgs.clightning}/bin/lightning-cli --lightning-dir=${lightning_dir}/ln_1 --regtest"
alias ln2="${pkgs.clightning}/bin/lightning-cli --lightning-dir=${lightning_dir}/ln_2 --regtest"


blockcount=$(btc getblockcount) || { blockcount=-1; }
Expand Down
Loading