From c46b7489580b484d398c03fa8416c7b8090048d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 27 Jun 2009 21:44:47 +0000 Subject: [PATCH] Add GNU Libunistring, a Unicode string handling library. svn path=/nixpkgs/trunk/; revision=16071 --- .../libraries/libunistring/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/libraries/libunistring/default.nix diff --git a/pkgs/development/libraries/libunistring/default.nix b/pkgs/development/libraries/libunistring/default.nix new file mode 100644 index 00000000000..3f1f7ba158d --- /dev/null +++ b/pkgs/development/libraries/libunistring/default.nix @@ -0,0 +1,41 @@ +{ fetchurl, stdenv }: + +stdenv.mkDerivation rec { + name = "libunistring-0.9"; + + src = fetchurl { + url = "mirror://gnu/libunistring/${name}.tar.gz"; + sha256 = "0j5f9nd6i5irvc9gk4ffgx3kgii3izhbm9adzv6svvkzwfiqsyrx"; + }; + + doCheck = true; + + meta = { + homepage = http://www.gnu.org/software/libunistring/; + + description = "GNU Libunistring, a 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 , 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 = "LGPLv3+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5e05c276743..ce954ca2b89 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3682,6 +3682,10 @@ let inherit fetchurl stdenv libtool; }; + libunistring = import ../development/libraries/libunistring { + inherit fetchurl stdenv; + }; + libupnp = import ../development/libraries/pupnp { inherit fetchurl stdenv; };