about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/text-engine
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/text-engine')
-rw-r--r--nixpkgs/pkgs/development/libraries/text-engine/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/text-engine/default.nix b/nixpkgs/pkgs/development/libraries/text-engine/default.nix
index f578ae000baf..0a9004d01a58 100644
--- a/nixpkgs/pkgs/development/libraries/text-engine/default.nix
+++ b/nixpkgs/pkgs/development/libraries/text-engine/default.nix
@@ -1,6 +1,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, fetchpatch
 , meson
 , ninja
 , json-glib
@@ -21,6 +22,14 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-YSG4Vk3hrmtaJkK1WAlQcdgiDdgC4Un0t6UdaoIcUes=";
   };
 
+  patches = [
+    # Fixes build with newer versions of clang
+    (fetchpatch {
+      url = "https://github.com/mjakeman/text-engine/commit/749c94d853c0b0e29e79a1b270ec61947b65c319.patch";
+      hash = "sha256-vs/a8IBovArw8tc1ZLUsaDHRVyA71KMB1NGENOKNOdk=";
+    })
+  ];
+
   nativeBuildInputs = [ gobject-introspection gtk4 meson ninja pkg-config ];
 
   buildInputs = [ libadwaita json-glib libxml2 ];