libjxl: fix/enable for aarch64
This commit is contained in:
parent
1b5dc1a188
commit
f24cab5396
@ -39,9 +39,14 @@ stdenv.mkDerivation rec {
|
||||
})
|
||||
];
|
||||
|
||||
# hydra's darwin machines run into https://github.com/libjxl/libjxl/issues/408
|
||||
# unless we disable highway's tests
|
||||
postPatch = lib.optional stdenv.isDarwin ''
|
||||
postPatch = ''
|
||||
# "robust statistics" have been removed in upstream mainline as they are
|
||||
# conidered to cause "interoperability problems". sure enough the tests
|
||||
# fail with precision issues on aarch64.
|
||||
sed -i '/robust_statistics_test.cc/d' lib/{jxl_tests.cmake,lib.gni}
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# hydra's darwin machines run into https://github.com/libjxl/libjxl/issues/408
|
||||
# unless we disable highway's tests
|
||||
substituteInPlace third_party/highway/CMakeLists.txt \
|
||||
--replace 'if(BUILD_TESTING)' 'if(false)'
|
||||
'';
|
||||
@ -118,6 +123,5 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ nh2 ];
|
||||
platforms = platforms.all;
|
||||
broken = stdenv.hostPlatform.isAarch64; # `internal compiler error`, see https://github.com/NixOS/nixpkgs/pull/103160#issuecomment-866388610
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user