From 955be27f588347d4e380c3a31b51e822cef1b349 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 15 Dec 2019 05:36:24 +0100 Subject: aegisub: fix build --- pkgs/applications/video/aegisub/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/video/aegisub/default.nix b/pkgs/applications/video/aegisub/default.nix index 2d82f3d3e2b4..c9e30c862a83 100644 --- a/pkgs/applications/video/aegisub/default.nix +++ b/pkgs/applications/video/aegisub/default.nix @@ -1,4 +1,4 @@ -{ config, stdenv, fetchurl +{ config, stdenv, fetchurl, fetchpatch , libX11, wxGTK , libiconv, fontconfig, freetype , libGLU, libGL @@ -29,8 +29,19 @@ stdenv.mkDerivation rec { sha256 = "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5"; }; - # Fixup build with icu-59 - postPatch = "sed '1i#include ' -i src/utils.cpp"; + patches = [ + # Compatibility with ICU 59 + (fetchpatch { + url = "https://github.com/Aegisub/Aegisub/commit/dd67db47cb2203e7a14058e52549721f6ff16a49.patch"; + sha256 = "07qqlckiyy64lz8zk1as0vflk9kqnjb340420lp9f0xj93ncssj7"; + }) + + # Compatbility with Boost 1.69 + (fetchpatch { + url = "https://github.com/Aegisub/Aegisub/commit/c3c446a8d6abc5127c9432387f50c5ad50012561.patch"; + sha256 = "1n8wmjka480j43b1pr30i665z8hdy6n3wdiz1ls81wyv7ai5yygf"; + }) + ]; buildInputs = with stdenv.lib; [ pkgconfig intltool libX11 wxGTK fontconfig freetype libGLU libGL -- cgit 1.4.1