about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-11-16 06:28:06 +0100
committerGitHub <noreply@github.com>2023-11-16 06:28:06 +0100
commit634d6a76c25b1747e0b51a33da49d613ce815e84 (patch)
treed5c290ab48bd6cae612086791f6994cab6740d3b /pkgs/development/libraries
parentaba830385baac22d06a22085f5b5baeb88c88b46 (diff)
parent1a20cea3671fa0eb1d303250a06234933cf23109 (diff)
Merge pull request #267367 from a-n-n-a-l-e-e/omorfi_python311_fixes
omorfi: add upstream patch for python3.11 to fix build
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/omorfi/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/omorfi/default.nix b/pkgs/development/libraries/omorfi/default.nix
index d6d0f1741d179..6002ea4646738 100644
--- a/pkgs/development/libraries/omorfi/default.nix
+++ b/pkgs/development/libraries/omorfi/default.nix
@@ -3,6 +3,7 @@
 , autoreconfHook
 , cg3
 , fetchFromGitHub
+, fetchpatch
 , hfst
 , hfst-ospell
 , icu
@@ -24,6 +25,16 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-UoqdwNWCNOPX6u1YBlnXUcB/fmcvcy/HXbYciVrMBOY=";
   };
 
+  patches = [
+    # allow building with python311.
+    # patch is incorporated upstream and should be removed on the next update
+    (fetchpatch {
+      name = "python311.patch";
+      url = "https://github.com/flammie/omorfi/commit/9736452ae6624060dbea0876a722c3731e776357.patch";
+      hash = "sha256-Q4fi5HMmO0fq8YI833vgv2EYp//9Um/xFoRk28WrUMk=";
+    })
+  ];
+
   # Fix for omorfi-hyphenate.sh file not found error
   postInstall = ''
     ln -s $out/share/omorfi/{omorfi.hyphenate-rules.hfst,omorfi.hyphenate.hfst}