···11-{ stdenv, fetchurl, libiconv }:
22-33-stdenv.mkDerivation rec {
44- name = "gettext-0.17";
55-66- src = fetchurl {
77- url = "mirror://gnu/gettext/${name}.tar.gz";
88- sha256 = "1fipjpaxxwifdw6cbr7mkxp1yvy643i38nhlh7124bqnisxki5i0";
99- };
1010-1111- configureFlags = "--disable-csharp";
1212-1313- # On cross building, gettext supposes that the wchar.h from libc
1414- # does not fulfill gettext needs, so it tries to work with its
1515- # own wchar.h file, which does not cope well with the system's
1616- # wchar.h and stddef.h (gcc-4.3 - glibc-2.9)
1717- preConfigure = ''
1818- if test -n "$crossConfig"; then
1919- echo gl_cv_func_wcwidth_works=yes > cachefile
2020- configureFlags="$configureFlags --cache-file=`pwd`/cachefile"
2121- fi
2222- '';
2323-2424- buildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
2525-2626- meta = {
2727- description = "GNU gettext, a well integrated set of translation tools and documentation";
2828-2929- longDescription = ''
3030- Usually, programs are written and documented in English, and use
3131- English at execution time for interacting with users. Using a common
3232- language is quite handy for communication between developers,
3333- maintainers and users from all countries. On the other hand, most
3434- people are less comfortable with English than with their own native
3535- language, and would rather be using their mother tongue for day to
3636- day's work, as far as possible. Many would simply love seeing their
3737- computer screen showing a lot less of English, and far more of their
3838- own language.
3939-4040- GNU `gettext' is an important step for the GNU Translation Project, as
4141- it is an asset on which we may build many other steps. This package
4242- offers to programmers, translators, and even users, a well integrated
4343- set of tools and documentation. Specifically, the GNU `gettext'
4444- utilities are a set of tools that provides a framework to help other
4545- GNU packages produce multi-lingual messages.
4646- '';
4747-4848- homepage = http://www.gnu.org/software/gettext/;
4949-5050- maintainers = [ ];
5151- branch = "0.17";
5252- };
5353-}