This flake provides an environment and tools to make Bitcoin Core development easy. Add this flake to the local flake registry, then use it with direnv to set up the environment for your local Bitcoin Core directory.
- Provide Bitcoin Core dependencies via Nix
- Automatically symlink necessary configuration files when creating worktrees
- Nix
- direnv
Clone this repository locally and add the flake to your registry:
git clone https://github.com/kannapoix/core-dev-env
cd ~/core-dev-env
nix registry add core-env $PWDReference the registry from direnv by creating a symlink to .envrc in your Bitcoin Core repository:
git clone https://github.com/bitcoin/bitcoin
cd bitcoin
ln -sf ~/core-dev-env/templates/.envrc .envrc
direnv allow