libjxl: add patch to fix build with gcc for RISC-V

This commit is contained in:
Nick Cao 2023-03-21 10:53:42 +08:00
parent de80fd06c5
commit 1068982713
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
{ stdenv, lib, fetchFromGitHub
, fetchpatch
, brotli
, cmake
, giflib
@ -33,6 +34,15 @@ stdenv.mkDerivation rec {
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 = [
cmake
gtest