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:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user