libjxl: add patch to fix build with gcc for RISC-V
This commit is contained in:
parent
de80fd06c5
commit
1068982713
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, lib, fetchFromGitHub
|
{ stdenv, lib, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, brotli
|
, brotli
|
||||||
, cmake
|
, cmake
|
||||||
, giflib
|
, giflib
|
||||||
|
@ -33,6 +34,15 @@ stdenv.mkDerivation rec {
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Add missing <atomic> content to fix gcc compilation for RISCV architecture
|
||||||
|
# https://github.com/libjxl/libjxl/pull/2211
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/libjxl/libjxl/commit/22d12d74e7bc56b09cfb1973aa89ec8d714fa3fc.patch";
|
||||||
|
hash = "sha256-X4fbYTMS+kHfZRbeGzSdBW5jQKw8UN44FEyFRUtw0qo=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
gtest
|
gtest
|
||||||
|
|
Loading…
Reference in a new issue