From 117183e27e273f6c8c121b8281d06d07e9b502c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 29 Mar 2016 11:12:42 +0200 Subject: [PATCH] intltool: fix problems with perl-5.22 http://hydra.nixos.org/build/33608086/nixlog/1/raw --- pkgs/development/tools/misc/intltool/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/intltool/default.nix b/pkgs/development/tools/misc/intltool/default.nix index 761cd6edfc2..4ab9fa28491 100644 --- a/pkgs/development/tools/misc/intltool/default.nix +++ b/pkgs/development/tools/misc/intltool/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, gettext, perl, perlXMLParser }: +{ stdenv, fetchurl, fetchpatch, gettext, perl, perlXMLParser }: stdenv.mkDerivation rec { name = "intltool-${version}"; @@ -9,6 +9,14 @@ stdenv.mkDerivation rec { sha256 = "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"; }; + # fix "unescaped left brace" errors when using intltool in some cases + patches = [(fetchpatch { + name = "perl-5.22.patch"; + url = "https://anonscm.debian.org/viewvc/pkg-gnome/desktop/unstable/intltool" + + "/debian/patches/perl5.22-regex-fixes?revision=47255&view=co"; + sha256 = "17clqczb9fky7hp8czxa0fy82b5478irvz4f3fnans3sqxl95hx3"; + })]; + propagatedBuildInputs = [ gettext perl perlXMLParser ]; meta = with stdenv.lib; {