Skip to content
Open
Show file tree
Hide file tree
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
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
description = "ldk-node development environment";

inputs = {
# Pinned to nixos-25.05: newer revisions of nixpkgs ship a
# blockstream-electrs whose CLI moved from `--cookie-file` to `--cookie`,
# This is a break in the `electrs` crate.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
# `blockstream-electrs` in this nixpkgs revision transitively pulls
# in `python3.12-ecdsa-0.19.1`, which nixpkgs marks insecure.
config.permittedInsecurePackages = [ "python3.12-ecdsa-0.19.1" ];
};

# Upstream tests are failing. Skips the tests on install.
blockstream-electrs = pkgs.blockstream-electrs.overrideAttrs (_: {
doCheck = false;
});
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.bitcoind
blockstream-electrs
];

shellHook = ''
export BITCOIND_EXE="${pkgs.bitcoind}/bin/bitcoind"
export ELECTRS_EXE="${blockstream-electrs}/bin/electrs"
'';
};
});
}
Loading