about summary refs log tree commit diff
path: root/pkgs/applications/graphics/rawtherapee
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-17 18:52:10 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-17 18:52:10 +0200
commite8130af3b850229a0fd98798c272fe66e97d5132 (patch)
tree20dcbccd3c2f8767913a12e59c5df73fc4153ef5 /pkgs/applications/graphics/rawtherapee
parentcb8fa2b758f8b3f5b7dfacf46d877ef1635938ea (diff)
rawtherapee: fix build
Diffstat (limited to 'pkgs/applications/graphics/rawtherapee')
-rw-r--r--pkgs/applications/graphics/rawtherapee/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/rawtherapee/default.nix b/pkgs/applications/graphics/rawtherapee/default.nix
index bf84ac1df11be..f4d340bcc8868 100644
--- a/pkgs/applications/graphics/rawtherapee/default.nix
+++ b/pkgs/applications/graphics/rawtherapee/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchurl
 , cmake
 , pkg-config
 , wrapGAppsHook3
@@ -37,6 +38,14 @@ stdenv.mkDerivation rec {
     forceFetchGit = true;
   };
 
+  # https://github.com/Beep6581/RawTherapee/issues/7074
+  patches = [
+    (fetchurl {
+      url = "https://github.com/termux-user-repository/tur/raw/c7b7648b5611cd1bc41a48a1ca6f3c4f71e253c5/tur/rawtherapee/0002-libjpeg-turbo-3.0.3.patch";
+      hash = "sha256-IaRMrwZd4KQTGjKd1S4su6b9E+Jt7Y0cZiDAkZ8dXHw=";
+    })
+  ];
+
   postPatch = ''
     echo "set(HG_VERSION ${version})" > ReleaseInfo.cmake
     substituteInPlace tools/osx/Info.plist.in rtgui/config.h.in \