···1-{ stdenv, fetchurl, libiconv }:
2-3-stdenv.mkDerivation rec {
4- name = "gettext-0.17";
5-6- src = fetchurl {
7- url = "mirror://gnu/gettext/${name}.tar.gz";
8- sha256 = "1fipjpaxxwifdw6cbr7mkxp1yvy643i38nhlh7124bqnisxki5i0";
9- };
10-11- configureFlags = "--disable-csharp";
12-13- # On cross building, gettext supposes that the wchar.h from libc
14- # does not fulfill gettext needs, so it tries to work with its
15- # own wchar.h file, which does not cope well with the system's
16- # wchar.h and stddef.h (gcc-4.3 - glibc-2.9)
17- preConfigure = ''
18- if test -n "$crossConfig"; then
19- echo gl_cv_func_wcwidth_works=yes > cachefile
20- configureFlags="$configureFlags --cache-file=`pwd`/cachefile"
21- fi
22- '';
23-24- buildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
25-26- meta = {
27- description = "GNU gettext, a well integrated set of translation tools and documentation";
28-29- longDescription = ''
30- Usually, programs are written and documented in English, and use
31- English at execution time for interacting with users. Using a common
32- language is quite handy for communication between developers,
33- maintainers and users from all countries. On the other hand, most
34- people are less comfortable with English than with their own native
35- language, and would rather be using their mother tongue for day to
36- day's work, as far as possible. Many would simply love seeing their
37- computer screen showing a lot less of English, and far more of their
38- own language.
39-40- GNU `gettext' is an important step for the GNU Translation Project, as
41- it is an asset on which we may build many other steps. This package
42- offers to programmers, translators, and even users, a well integrated
43- set of tools and documentation. Specifically, the GNU `gettext'
44- utilities are a set of tools that provides a framework to help other
45- GNU packages produce multi-lingual messages.
46- '';
47-48- homepage = http://www.gnu.org/software/gettext/;
49-50- maintainers = [ ];
51- branch = "0.17";
52- };
53-}