libjxl: fix darwin build with upstream patch

This commit is contained in:
Robert Scott
2021-12-05 23:00:05 +00:00
parent 71a1e6b562
commit 2ae055d56a
@@ -1,4 +1,5 @@
{ stdenv, lib, fetchFromGitHub
, fetchpatch
, asciidoc
, brotli
, cmake
@@ -29,6 +30,15 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
patches = [
# present in master, remove after 0.7?
(fetchpatch {
name = "fix-link-lld-macho.patch";
url = "https://github.com/libjxl/libjxl/commit/88fe3fff3dc70c72405f57c69feffd9823930034.patch";
sha256 = "1419fyiq4srpj72cynwyvqy8ldi7vn9asvkp5fsbmiqkyhb15jpk";
})
];
# hydra's darwin machines run into https://github.com/libjxl/libjxl/issues/408
# unless we disable highway's tests
postPatch = lib.optional stdenv.isDarwin ''