From 40d02e0fa6039ff0639d4d769773671d6fcd6ef2 Mon Sep 17 00:00:00 2001 From: Angel J <78835633+Iamanaws@users.noreply.github.com> Date: Sat, 16 May 2026 12:11:51 -0700 Subject: [PATCH 1/2] stellar-core: 26.0.1 -> 26.1.0 --- pkgs/by-name/st/stellar-core/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/stellar-core/package.nix b/pkgs/by-name/st/stellar-core/package.nix index d84f3fa255b0..659b0c861fc5 100644 --- a/pkgs/by-name/st/stellar-core/package.nix +++ b/pkgs/by-name/st/stellar-core/package.nix @@ -48,13 +48,13 @@ in stdenv.mkDerivation (finalAttrs: { pname = "stellar-core"; - version = "26.0.1"; + version = "26.1.0"; src = fetchFromGitHub { owner = "stellar"; repo = "stellar-core"; tag = "v${finalAttrs.version}"; - hash = "sha256-u9sipDwTBhhvcyEcdBUZjtg70a76g2e4ub+vPKzOKg8="; + hash = "sha256-0bdomxjx+Qwvxu6NWUTYbLvoKwCvM0e5I3qwhKLEecM="; fetchSubmodules = true; }; From 3676fa862898b736e0a0dfa027a1d2b422e22fa6 Mon Sep 17 00:00:00 2001 From: Angel J <78835633+iamanaws@users.noreply.github.com> Date: Sat, 16 May 2026 19:23:22 -0700 Subject: [PATCH 2/2] stellar-core: enable focused test smoke checks --- pkgs/by-name/st/stellar-core/package.nix | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pkgs/by-name/st/stellar-core/package.nix b/pkgs/by-name/st/stellar-core/package.nix index 659b0c861fc5..95c12b74233c 100644 --- a/pkgs/by-name/st/stellar-core/package.nix +++ b/pkgs/by-name/st/stellar-core/package.nix @@ -10,6 +10,8 @@ libtool, libunwind, perl, + postgresql, + postgresqlTestHook, pkg-config, ripgrep, rustc, @@ -113,6 +115,11 @@ stdenv.mkDerivation (finalAttrs: { rustPlatform.cargoSetupHook ]; + nativeCheckInputs = [ + postgresql + postgresqlTestHook + ]; + buildInputs = [ libpq libunwind @@ -120,6 +127,16 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; + doCheck = true; + + postgresqlTestUserOptions = "LOGIN CREATEDB"; + + postgresqlTestSetupPost = '' + for database in $(seq 0 15); do + createdb "test$database" + done + ''; + preConfigure = '' # Due to https://github.com/NixOS/nixpkgs/issues/8567 we cannot rely on # having the .git directory present, so directly provide the version @@ -142,6 +159,19 @@ stdenv.mkDerivation (finalAttrs: { ./autogen.sh ''; + checkPhase = '' + runHook preCheck + + # The full upstream test suite is too heavy for a default package check: it + # includes long-running integration scenarios and Soroban tests across all + # p21-p26 protocol crates. Keep this focused on a basic consensus smoke test + # plus a PostgreSQL-backed persistence test. + ./src/stellar-core test --ll fatal -w NoTests -a -r simple --disable-dots "standalone" + ./src/stellar-core test --ll fatal -w NoTests -a -r simple --disable-dots "SCP State" + + runHook postCheck + ''; + meta = { description = "Reference peer-to-peer agent that manages the Stellar network"; longDescription = ''