2009-09-19 23:17:11 +01:00
|
|
|
{ fetchurl, stdenv, libiconv }:
|
2009-06-27 22:44:47 +01:00
|
|
|
|
2015-07-10 01:31:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libunistring";
|
2018-06-08 17:52:33 +01:00
|
|
|
version = "0.9.10";
|
2009-06-27 22:44:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnu/libunistring/${pname}-${version}.tar.gz";
|
2018-06-08 17:52:33 +01:00
|
|
|
sha256 = "02v17za10mxnj095x4pvm80jxyqwk93kailfc2j8xa1r6crmnbm8";
|
2009-06-27 22:44:47 +01:00
|
|
|
};
|
|
|
|
|
2017-02-20 22:37:53 +00:00
|
|
|
outputs = [ "out" "dev" "info" "doc" ];
|
|
|
|
|
2016-10-12 19:26:43 +01:00
|
|
|
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
|
2015-07-10 01:31:06 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libiconv-prefix=${libiconv}"
|
|
|
|
];
|
2009-09-19 23:17:11 +01:00
|
|
|
|
2019-08-24 09:34:53 +01:00
|
|
|
doCheck = false;
|
2017-12-04 22:38:34 +00:00
|
|
|
|
2018-09-09 18:36:05 +01:00
|
|
|
/* This seems to cause several random failures like these, which I assume
|
|
|
|
is because of bad or missing target dependencies in their build system:
|
|
|
|
|
|
|
|
./unistdio/test-u16-vasnprintf2.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
|
|
|
|
FAIL unistdio/test-u16-vasnprintf2.sh (exit status: 1)
|
|
|
|
|
|
|
|
FAIL: unistdio/test-u16-vasnprintf3.sh
|
|
|
|
======================================
|
|
|
|
|
|
|
|
./unistdio/test-u16-vasnprintf3.sh: line 16: ./test-u16-vasnprintf1: No such file or directory
|
|
|
|
FAIL unistdio/test-u16-vasnprintf3.sh (exit status: 1)
|
|
|
|
*/
|
|
|
|
enableParallelBuilding = false;
|
2009-06-27 22:44:47 +01:00
|
|
|
|
|
|
|
meta = {
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = https://www.gnu.org/software/libunistring/;
|
2009-06-27 22:44:47 +01:00
|
|
|
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Unicode string library";
|
2009-06-27 22:44:47 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
This library provides functions for manipulating Unicode strings
|
|
|
|
and for manipulating C strings according to the Unicode
|
|
|
|
standard.
|
|
|
|
|
|
|
|
GNU libunistring is for you if your application involves
|
|
|
|
non-trivial text processing, such as upper/lower case
|
|
|
|
conversions, line breaking, operations on words, or more
|
|
|
|
advanced analysis of text. Text provided by the user can, in
|
|
|
|
general, contain characters of all kinds of scripts. The text
|
|
|
|
processing functions provided by this library handle all scripts
|
|
|
|
and all languages.
|
|
|
|
|
|
|
|
libunistring is for you if your application already uses the ISO
|
|
|
|
C / POSIX <ctype.h>, <wctype.h> functions and the text it
|
|
|
|
operates on is provided by the user and can be in any language.
|
|
|
|
|
|
|
|
libunistring is also for you if your application uses Unicode
|
|
|
|
strings as internal in-memory representation.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
2009-07-02 23:54:19 +01:00
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2010-02-12 13:40:53 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2009-06-27 22:44:47 +01:00
|
|
|
};
|
|
|
|
}
|