-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi: using nix flake and upgrading lwk
The version of lwk has been raised to cli_0.5.1. Change to use flake to use cli_0.5.1 in nix as well. Using flake allows you to run nix develop instead of nix-shell. Just uses the flake on nix shell. For the nix-env addon users.
- Loading branch information
1 parent
22f4e66
commit 3729fbd
Showing
9 changed files
with
302 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
inputs = { | ||
# Pinning to revision 755b915a158c9d588f08e9b08da9f7f3422070cc | ||
# - cln v24.05 | ||
# - lnd v0.18.0-beta | ||
# - bitcoin v27.1 | ||
# - elements v23.2.1 | ||
nixpkgs.url = "github:NixOS/nixpkgs/755b915a158c9d588f08e9b08da9f7f3422070cc"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
# blockstream-electrs: init at 0.4.1 #299761 | ||
# https://github.com/NixOS/nixpkgs/pull/299761/commits/680d27ad847801af781e0a99e4b87ed73965c69a | ||
nixpkgs2.url = "github:NixOS/nixpkgs/680d27ad847801af781e0a99e4b87ed73965c69a"; | ||
# lwk: init at wasm_0.6.3 #14bac28 | ||
# https://github.com/Blockstream/lwk/releases/tag/wasm_0.6.3 | ||
lwk-flake = { | ||
url = "github:blockstream/lwk/14bac284fe712dd6fdbbbe82bda179a2a236b2fa"; | ||
inputs = { | ||
nixpkgs.follows = "nixpkgs"; | ||
flake-utils.follows = "flake-utils"; | ||
}; | ||
}; | ||
}; | ||
outputs = { self, nixpkgs, nixpkgs2, flake-utils, lwk-flake }: | ||
flake-utils.lib.eachDefaultSystem | ||
(system: | ||
let | ||
pkgs = import nixpkgs { | ||
system = system; | ||
}; | ||
pkgs2 = import nixpkgs2 { | ||
system = system; | ||
}; | ||
blockstream-electrs = pkgs2.blockstream-electrs.overrideAttrs (oldAttrs: { | ||
cargoBuildFlags = [ "--features liquid" "--bin electrs" ]; | ||
}); | ||
bitcoind = pkgs.bitcoind.overrideAttrs (attrs: { | ||
meta = attrs.meta or { } // { priority = 0; }; | ||
}); | ||
lwk = lwk-flake.packages.${system}.bin; | ||
in | ||
with pkgs; | ||
{ | ||
devShells.default = mkShell { | ||
buildInputs = [ | ||
go_1_22 | ||
gotools | ||
blockstream-electrs | ||
bitcoind | ||
elementsd | ||
clightning | ||
lnd | ||
lwk | ||
]; | ||
# Cannot run the debugger without this | ||
# see https://github.com/go-delve/delve/issues/3085 | ||
hardeningDisable = [ "all" ]; | ||
}; | ||
} | ||
); | ||
} |
Oops, something went wrong.