From f9a86257f37d8b0b3f6ab4d1b55f59285d99b64f Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 11 Aug 2026 22:24:33 +0200 Subject: [PATCH] bind: fix riscv64-linux build (cherry picked from commit 4b39738cc43a989f0380563f304e26b6bd7fa1a4) --- pkgs/by-name/bi/bind/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/bi/bind/package.nix b/pkgs/by-name/bi/bind/package.nix index 9fa7ba683f44..a54ff4134d65 100644 --- a/pkgs/by-name/bi/bind/package.nix +++ b/pkgs/by-name/bi/bind/package.nix @@ -119,6 +119,12 @@ stdenv.mkDerivation (finalAttrs: { preCheck = '' # skip timezone-related tests, they are flaky inside the nix sandbox sed -i '/^ISC_TEST_ENTRY(isc_time_formatISO8601L/d' tests/isc/time_test.c + '' + + lib.optionalString stdenv.hostPlatform.isRiscV64 '' + # lock benchmarks exceed the 300s test watchdog on slower hardware + sed -i '/^ISC_TEST_ENTRY(isc_mutex_benchmark/d' tests/isc/mutex_test.c + sed -i '/^ISC_TEST_ENTRY_CUSTOM(isc_rwlock_benchmark/d' tests/isc/rwlock_test.c + sed -i '/^ISC_TEST_ENTRY(isc_spinlock_benchmark/d' tests/isc/spinlock_test.c ''; postFixup = ''