about summary refs log tree commit diff
path: root/pkgs/development/libraries/lensfun
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-13 15:21:31 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-13 15:21:31 +0100
commit5a6019fc8312b11b38a37eefa287a12db34c8823 (patch)
treecf9a055eea4d4f6feea600bd716d70bcab3510dc /pkgs/development/libraries/lensfun
parent0792676d67081df80152b663f967258d341701cf (diff)
lensfun: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/development/libraries/lensfun')
-rw-r--r--pkgs/development/libraries/lensfun/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/lensfun/default.nix b/pkgs/development/libraries/lensfun/default.nix
index 2f0e2148dfeb5..efd65c1695d49 100644
--- a/pkgs/development/libraries/lensfun/default.nix
+++ b/pkgs/development/libraries/lensfun/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake, libxml2, python3 }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, glib, zlib, libpng, cmake, libxml2, python3 }:
 
 let
   version = "0.3.3";
@@ -24,6 +24,14 @@ stdenv.mkDerivation {
     sha256 = "0ixf0f7qv0mc7zrw9w1sb60w833g4rqrfj8cjxwzv2vimqcksccz";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "fix-compilation-with-clang.patch";
+      url = "https://github.com/lensfun/lensfun/commit/5c2065685a22f19f8138365c0e5acf0be8329c02.patch";
+      sha256 = "sha256-tAOCNL37pKE7hfQCu+hUTKLFnRHWF5Dplqf+GaucG+4=";
+    })
+  ];
+
   # replace database with a more recent snapshot
   # the mastr branch uses version 2 profiles, while 0.3.3 requires version 1 profiles,
   # so we run the conversion tool the project provides,