1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/intltool/default.nix

30 lines
985 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, gettext, perlPackages }:
2015-05-11 08:11:30 +01:00
stdenv.mkDerivation rec {
pname = "intltool";
2015-05-11 08:11:30 +01:00
version = "0.51.0";
2012-11-25 19:58:04 +00:00
src = fetchurl {
url = "https://launchpad.net/intltool/trunk/${version}/+download/${pname}-${version}.tar.gz";
2015-05-11 08:11:30 +01:00
sha256 = "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7";
2012-11-25 19:58:04 +00:00
};
2013-01-31 16:41:07 +00:00
# fix "unescaped left brace" errors when using intltool in some cases
patches = [(fetchpatch {
name = "perl5.26-regex-fixes.patch";
url = "https://sources.debian.org/data/main/i/intltool/0.51.0-5"
+ "/debian/patches/perl5.26-regex-fixes.patch";
sha256 = "12q2140867r5d0dysly72khi7b0mm2gd7nlm1k81iyg7fxgnyz45";
})];
propagatedBuildInputs = [ gettext ] ++ (with perlPackages; [ perl XMLParser ]);
2012-11-25 19:58:04 +00:00
2015-05-11 08:11:30 +01:00
meta = with stdenv.lib; {
2012-11-25 19:58:04 +00:00
description = "Translation helper tool";
homepage = https://launchpad.net/intltool/;
2015-05-11 08:11:30 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
2012-11-25 19:58:04 +00:00
};
}