From f55d4205a5c1c0c5e43c4d6e6efbe3548cd9d5bf Mon Sep 17 00:00:00 2001 From: Volker Diels-Grabsch Date: Wed, 10 Jun 2026 20:15:28 +0200 Subject: [PATCH] jasterix: fix tests (cherry picked from commit 38248076ac1edbe81c517028be33ecb320467d5a) --- pkgs/by-name/ja/jasterix/package.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ja/jasterix/package.nix b/pkgs/by-name/ja/jasterix/package.nix index 77dfdaf99f07..9b804aaabd26 100644 --- a/pkgs/by-name/ja/jasterix/package.nix +++ b/pkgs/by-name/ja/jasterix/package.nix @@ -1,9 +1,9 @@ { - applyPatches, boost, catch2_3, cmake, fetchFromGitHub, + fetchpatch, lib, libarchive, libpcap, @@ -24,6 +24,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-df5tByZwtQLdV0UlSo1WkgyoF3hReU/mN74V2WL6zoI="; }; + patches = [ + (fetchpatch { + name = "jasterix-fix-tests.patch"; + url = "https://github.com/OpenATSGmbH/jASTERIX/commit/b79e59c042ebb7eee31f50a7ed48840bcec50429.patch"; + hash = "sha256-V0/nMJGb8ZB/Z6bKvyZnic57HXAsUAHXgyVq+D4yFDw="; + }) + ]; + # Disable boost-stacktrace_backtrace, which is an optional dependency and not yet available in Nix. postPatch = '' sed -i 's/\(find_package .*\) stacktrace_backtrace/\1/' CMakeLists.txt @@ -54,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: { openssl.dev ]; - doCheck = false; # The tests require ASTERIX files that are not publicly provided + doCheck = true; strictDeps = true; __structuredAttrs = true;