1 { fetchurl, lib, stdenv, libiconv }:
3 # Note: this package is used for bootstrapping fetchurl, and thus
4 # cannot use fetchpatch! All mutable patches (generated by GitHub or
5 # cgit) that are needed here should be included directly in Nixpkgs as
8 stdenv.mkDerivation rec {
9 pname = "libunistring";
13 url = "mirror://gnu/libunistring/${pname}-${version}.tar.gz";
14 sha256 = "sha256-PAGEwOSS18IIzjHSXdHSxY8MPtbLvgMsWySM3a0xhUQ=";
17 outputs = [ "out" "dev" "info" "doc" ];
20 propagatedBuildInputs = lib.optional (!stdenv.isLinux) libiconv;
23 "--with-libiconv-prefix=${libiconv}"
28 /* This seems to cause several random failures like these, which I assume
29 is because of bad or missing target dependencies in their build system:
31 ./unistdio/test-u16-vasnprintf2.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
32 FAIL unistdio/test-u16-vasnprintf2.sh (exit status: 1)
34 FAIL: unistdio/test-u16-vasnprintf3.sh
35 ======================================
37 ./unistdio/test-u16-vasnprintf3.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
38 FAIL unistdio/test-u16-vasnprintf3.sh (exit status: 1)
40 enableParallelBuilding = false;
43 homepage = "https://www.gnu.org/software/libunistring/";
45 description = "Unicode string library";
48 This library provides functions for manipulating Unicode strings
49 and for manipulating C strings according to the Unicode
52 GNU libunistring is for you if your application involves
53 non-trivial text processing, such as upper/lower case
54 conversions, line breaking, operations on words, or more
55 advanced analysis of text. Text provided by the user can, in
56 general, contain characters of all kinds of scripts. The text
57 processing functions provided by this library handle all scripts
60 libunistring is for you if your application already uses the ISO
61 C / POSIX <ctype.h>, <wctype.h> functions and the text it
62 operates on is provided by the user and can be in any language.
64 libunistring is also for you if your application uses Unicode
65 strings as internal in-memory representation.
68 license = lib.licenses.lgpl3Plus;
71 platforms = lib.platforms.all;