Merge pull request #222282 from NickCao/libjxl-riscv

libjxl: add patch to fix build with gcc for RISC-V
This commit is contained in:
Sergei Trofimovich 2023-04-08 08:47:05 +01:00 committed by GitHub
commit 8a7887abd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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