-
-
Save erikarvstedt/62c38855e0092cd4adffa83cf751023b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
read -rd '' src <<'EOF' || : | |
let | |
system = "x86_64-linux"; | |
# nix-bitcoin 0.0.99 | |
nix-bitcoin = builtins.getFlake "github:fort-nix/nix-bitcoin?rev=8a8f32a4fa8fa4d97bea60c19d587a4523d10a2a"; | |
makeTest = scenario: | |
nix-bitcoin.legacyPackages.${system}.makeTest { | |
name = "bitcoind_26-${scenario}"; | |
config = { pkgs, lib, ... }: { | |
imports = [ nix-bitcoin.lib.test.scenarios.${scenario} ]; | |
services.bitcoind.package = pkgs.bitcoind.overrideAttrs rec { | |
version = "26.0"; | |
src = builtins.fetchurl { | |
url = "https://bitcoincore.org/bin/bitcoin-core-${version}/test.rc2/bitcoin-${version}rc2.tar.gz"; | |
sha256 = "fc7d150c1ba424286e95a1ace8af5e31557974443a806c26120633cb5c9fbfad"; | |
}; | |
# file name of completions changed | |
postInstall = ""; | |
}; | |
# joinmarket fails with bitcoind 26.0 | |
services.joinmarket.enable = lib.mkForce false; | |
}; | |
}; | |
in [ | |
(makeTest "default") | |
(makeTest "regtest") | |
] | |
EOF | |
nix build -L --no-link --print-out-paths --expr "$src" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment