6 updateAutotoolsGnuConfigScriptsHook,
10 # Note: this package is used for bootstrapping fetchurl, and thus
11 # cannot use fetchpatch! All mutable patches (generated by GitHub or
12 # cgit) that are needed here should be included directly in Nixpkgs as
15 stdenv.mkDerivation (finalAttrs: {
16 pname = "libunistring";
20 url = "mirror://gnu/libunistring/libunistring-${finalAttrs.version}.tar.gz";
21 hash = "sha256-/W1WYvpwZIfEg0mnWLV7wUnOlOxsMGJOyf3Ec86rvI4=";
32 propagatedBuildInputs = lib.optional (!stdenv.hostPlatform.isLinux) libiconv;
33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
34 darwin.apple_sdk.frameworks.CoreServices
36 nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
38 configureFlags = [ "--with-libiconv-prefix=${libiconv}" ];
43 This seems to cause several random failures like these, which I assume
44 is because of bad or missing target dependencies in their build system:
46 ./unistdio/test-u16-vasnprintf2.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
47 FAIL unistdio/test-u16-vasnprintf2.sh (exit status: 1)
49 FAIL: unistdio/test-u16-vasnprintf3.sh
50 ======================================
52 ./unistdio/test-u16-vasnprintf3.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
53 FAIL unistdio/test-u16-vasnprintf3.sh (exit status: 1)
55 enableParallelChecking = false;
56 enableParallelBuilding = true;
59 homepage = "https://www.gnu.org/software/libunistring/";
61 description = "Unicode string library";
64 This library provides functions for manipulating Unicode strings
65 and for manipulating C strings according to the Unicode
68 GNU libunistring is for you if your application involves
69 non-trivial text processing, such as upper/lower case
70 conversions, line breaking, operations on words, or more
71 advanced analysis of text. Text provided by the user can, in
72 general, contain characters of all kinds of scripts. The text
73 processing functions provided by this library handle all scripts
76 libunistring is for you if your application already uses the ISO
77 C / POSIX <ctype.h>, <wctype.h> functions and the text it
78 operates on is provided by the user and can be in any language.
80 libunistring is also for you if your application uses Unicode
81 strings as internal in-memory representation.
84 license = lib.licenses.lgpl3Plus;
87 platforms = lib.platforms.all;