nixpkgs/pkgs/development/tools/misc/intltool/default.nix

30 lines
984 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, gettext, perl, perlXMLParser }:
2015-05-11 09:11:30 +02:00
stdenv.mkDerivation rec {
name = "intltool-${version}";
version = "0.51.0";
2012-11-25 20:58:04 +01:00
src = fetchurl {
2015-05-11 09:11:30 +02:00
url = "https://launchpad.net/intltool/trunk/${version}/+download/${name}.tar.gz";
sha256 = "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7";
2012-11-25 20:58:04 +01:00
};
2013-01-31 17:41:07 +01:00
# 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";
})];
2015-05-11 09:11:30 +02:00
propagatedBuildInputs = [ gettext perl perlXMLParser ];
2012-11-25 20:58:04 +01:00
2015-05-11 09:11:30 +02:00
meta = with stdenv.lib; {
2012-11-25 20:58:04 +01:00
description = "Translation helper tool";
2015-05-11 09:11:30 +02:00
homepage = http://launchpad.net/intltool/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
2012-11-25 20:58:04 +01:00
};
}