@@ -3,6 +3,7 @@
33, cmake
44, cups
55, fetchurl
6+, fetchpatch
67, fontconfig
78, freetype
89, harfbuzzFull
@@ -42,6 +43,19 @@ mkDerivation rec {
4243 sha256 = "sha256-MYMWss/Hp2GR0+DT+MImUUfa6gVwFiAo4kPCktgm+M4=";
4344 };
4445
46+ patches = [
47+ # For harfbuzz >= 2.9.0
48+ (fetchpatch {
49+ url = "https://github.com/scribusproject/scribus/commit/1b546978bc4ea0b2a73fbe4d7cf947887e865162.patch";
50+ sha256 = "sha256-noRCaN63ZYFfXmAluEYXdFPNOk3s5W3KBAsLU1Syxv4=";
51+ })
52+ # For harfbuzz >= 3.0
53+ (fetchpatch {
54+ url = "https://github.com/scribusproject/scribus/commit/68ec41169eaceea4a6e1d6f359762a191c7e61d5.patch";
55+ sha256 = "sha256-xhp65qVvaof0md1jb3XHZw7uFX1RtNxPfUOaVnvZV1Y=";
56+ })
57+ ];
58+
4559 nativeBuildInputs = [
4660 cmake
4761 pkg-config