lol
1{ fetchurl, stdenv, libiconv }:
2
3stdenv.mkDerivation rec {
4 name = "libunistring-0.9.6";
5
6 src = fetchurl {
7 url = "mirror://gnu/libunistring/${name}.tar.gz";
8 sha256 = "0ixxmgpgh2v8ifm6hbwsjxl023myk3dfnj7wnvmqjivza31fw9cn";
9 };
10
11 patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];
12
13 propagatedBuildInputs = [ libiconv ];
14
15 configureFlags = [
16 "--with-libiconv-prefix=${libiconv}"
17 ];
18
19 # XXX: There are test failures on non-GNU systems, see
20 # http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
21 doCheck = stdenv ? glibc;
22
23 meta = {
24 homepage = http://www.gnu.org/software/libunistring/;
25
26 description = "Unicode string library";
27
28 longDescription = ''
29 This library provides functions for manipulating Unicode strings
30 and for manipulating C strings according to the Unicode
31 standard.
32
33 GNU libunistring is for you if your application involves
34 non-trivial text processing, such as upper/lower case
35 conversions, line breaking, operations on words, or more
36 advanced analysis of text. Text provided by the user can, in
37 general, contain characters of all kinds of scripts. The text
38 processing functions provided by this library handle all scripts
39 and all languages.
40
41 libunistring is for you if your application already uses the ISO
42 C / POSIX <ctype.h>, <wctype.h> functions and the text it
43 operates on is provided by the user and can be in any language.
44
45 libunistring is also for you if your application uses Unicode
46 strings as internal in-memory representation.
47 '';
48
49 license = stdenv.lib.licenses.lgpl3Plus;
50
51 maintainers = [ ];
52 platforms = stdenv.lib.platforms.all;
53 };
54}