3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libunistring/default.nix
Dan Peebles 0419452113 Fix Darwin stdenv to work on 10.13
The main changes are in libSystem, which lost the coretls component in 10.13
and some hardening changes that quietly crash any program that uses %n in
a non-constant format string, so we've needed to patch a lot of programs that
use gnulib.
2017-07-11 21:56:38 -04:00

57 lines
1.8 KiB
Nix

{ fetchurl, stdenv, libiconv }:
stdenv.mkDerivation rec {
name = "libunistring-0.9.7";
src = fetchurl {
url = "mirror://gnu/libunistring/${name}.tar.gz";
sha256 = "1ra1baz2187kbw9im47g6kqb5mx9plq703mkjxaval8rxv5q3q4w";
};
patches = stdenv.lib.optionals stdenv.isDarwin [ ./clang.patch stdenv.secure-format-patch ];
outputs = [ "out" "dev" "info" "doc" ];
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
configureFlags = [
"--with-libiconv-prefix=${libiconv}"
];
# XXX: There are test failures on non-GNU systems, see
# http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
doCheck = stdenv ? glibc;
meta = {
homepage = http://www.gnu.org/software/libunistring/;
description = "Unicode string library";
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.
'';
license = stdenv.lib.licenses.lgpl3Plus;
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
};
}