nix: fix nix-store-tests-run for static builds

The test runner's buildInputs (writableTmpDirAsHomeHook, openssl)
need to be nativeBuildInputs. In the static (cross-musl) build,
strictDeps is enabled and only nativeBuildInputs are added to PATH.
With buildInputs, openssl was not in PATH, causing
HttpsBinaryCacheStoreTest.queryPathInfo to crash.
This commit is contained in:
Philip Taron
2026-04-12 14:50:44 -07:00
parent 924e5a22c7
commit 0ca69b0650
@@ -62,10 +62,10 @@ mkMesonExecutable (finalAttrs: {
runCommand "${finalAttrs.pname}-run"
{
meta.broken = !stdenv.hostPlatform.emulatorAvailable buildPackages;
buildInputs = [
nativeBuildInputs = [
writableTmpDirAsHomeHook
]
++ lib.optional (lib.versionAtLeast version "2.34pre") openssl;
++ lib.optional (lib.versionAtLeast version "2.34pre") (lib.getBin openssl);
}
''
export _NIX_TEST_UNIT_DATA=${data + "/src/libstore-tests/data"}