nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 29 lines 985 B view raw
1{ stdenv, fetchurl, fetchpatch, gettext, perlPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "intltool"; 5 version = "0.51.0"; 6 7 src = fetchurl { 8 url = "https://launchpad.net/intltool/trunk/${version}/+download/${pname}-${version}.tar.gz"; 9 sha256 = "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"; 10 }; 11 12 # fix "unescaped left brace" errors when using intltool in some cases 13 patches = [(fetchpatch { 14 name = "perl5.26-regex-fixes.patch"; 15 url = "https://sources.debian.org/data/main/i/intltool/0.51.0-5" 16 + "/debian/patches/perl5.26-regex-fixes.patch"; 17 sha256 = "12q2140867r5d0dysly72khi7b0mm2gd7nlm1k81iyg7fxgnyz45"; 18 })]; 19 20 propagatedBuildInputs = [ gettext ] ++ (with perlPackages; [ perl XMLParser ]); 21 22 meta = with stdenv.lib; { 23 description = "Translation helper tool"; 24 homepage = https://launchpad.net/intltool/; 25 license = licenses.gpl2Plus; 26 maintainers = with maintainers; [ raskin ]; 27 platforms = platforms.unix; 28 }; 29}