blockstream-electrs: 0.4.1-unstable-2024-11-25 -> 0.4.1-unstable-2026-04-20 (#519495)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-13 18:35:59 +00:00
committed by GitHub
@@ -3,33 +3,39 @@
electrum,
fetchFromGitHub,
lib,
rocksdb_8_3,
rocksdb,
rust-jemalloc-sys,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "blockstream-electrs";
version = "0.4.1-unstable-2024-11-25";
version = "0.4.1-unstable-2026-04-20";
src = fetchFromGitHub {
owner = "Blockstream";
repo = "electrs";
rev = "680eacaa8360d5f46eaae9611a3097ba183795c6";
hash = "sha256-oDM4arH3aplgcS49t/hy5Rqt36glrVufd3F4tw3j1zo=";
rev = "503b740cce2133fd07f451cbe93249a4e092b300";
hash = "sha256-jFOEQwFDRVghCDFu0mybSLeTk9zWJSQW9clWFMkCa5A=";
};
cargoHash = "sha256-X2C69ui3XiYP1cg9FgfBbJlLLMq1SCw+oAL20B1Fs30=";
cargoHash = "sha256-P8slOt07Fu6NNzYLEso3UQtfx7Yj+C4w98lq/Wr8oTk=";
nativeBuildInputs = [
# Needed for librocksdb-sys
rustPlatform.bindgenHook
];
buildInputs = [
# tikv-jemalloc-sys's vendored jemalloc configure breaks under gcc 15.
rust-jemalloc-sys
];
env = {
# Dynamically link rocksdb
ROCKSDB_INCLUDE_DIR = "${rocksdb_8_3}/include";
ROCKSDB_LIB_DIR = "${rocksdb_8_3}/lib";
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
# External binaries for integration tests are provided via nixpkgs. Skip
# trying to download them.
@@ -52,6 +58,13 @@ rustPlatform.buildRustPackage rec {
# Build tests in debug mode to reduce build time
checkType = "debug";
# flaky: wait_for_sync roundtrip races the wallet daemon startup
checkFlags = [
"--skip=test_electrum_balance"
"--skip=test_electrum_history"
"--skip=test_electrum_payment"
];
# Integration tests require us to pass in some external deps via env.
preCheck = lib.optionalString doCheck ''
export BITCOIND_EXE=${bitcoind}/bin/bitcoind