2009-09-19 22:17:11 +00:00
|
|
|
{ fetchurl, stdenv, libiconv }:
|
2009-06-27 21:44:47 +00:00
|
|
|
|
2015-07-10 00:31:06 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libunistring-0.9.6";
|
2009-06-27 21:44:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/libunistring/${name}.tar.gz";
|
2015-07-10 00:31:06 +00:00
|
|
|
sha256 = "0ixxmgpgh2v8ifm6hbwsjxl023myk3dfnj7wnvmqjivza31fw9cn";
|
2009-06-27 21:44:47 +00:00
|
|
|
};
|
|
|
|
|
2014-08-17 20:17:13 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];
|
|
|
|
|
2015-07-10 00:31:06 +00:00
|
|
|
propagatedBuildInputs = [ libiconv ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libiconv-prefix=${libiconv}"
|
|
|
|
];
|
2009-09-19 22:17:11 +00:00
|
|
|
|
2010-02-15 09:36:33 +00:00
|
|
|
# XXX: There are test failures on non-GNU systems, see
|
|
|
|
# http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
|
2015-07-10 00:31:06 +00:00
|
|
|
doCheck = stdenv ? glibc;
|
2009-06-27 21:44:47 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/libunistring/;
|
|
|
|
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Unicode string library";
|
2009-06-27 21:44:47 +00: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 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
2009-07-02 22:54:19 +00: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 21:44:47 +00:00
|
|
|
};
|
|
|
|
}
|