From 836b0d259de1cb8ac47771f994e895ac5079c562 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Sun, 27 Mar 2011 04:46:05 +0000 Subject: [PATCH] ustr: packaged svn path=/nixpkgs/trunk/; revision=26540 --- pkgs/development/libraries/ustr/default.nix | 24 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/ustr/default.nix diff --git a/pkgs/development/libraries/ustr/default.nix b/pkgs/development/libraries/ustr/default.nix new file mode 100644 index 000000000000..ebf9628126e2 --- /dev/null +++ b/pkgs/development/libraries/ustr/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, glibc }: +stdenv.mkDerivation rec { + + name = "ustr-${version}"; + version = "1.0.4"; + + src = fetchurl { + url = "http://www.and.org/ustr/${version}/${name}.tar.bz2"; + sha256 = "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx"; + }; + prePatch = "substituteInPlace Makefile --replace /usr/include/ ${glibc}/include/"; + + makeFlags = "DESTDIR=$(out) prefix= LDCONFIG=echo"; + + configurePhase = "make ustr-import"; + buildInputs = [ glibc ]; + + meta = with stdenv.lib; { + homepage = http://www.and.org/ustr/; + description = "Micro String API for C language"; + license = licenses.bsd2; + maintainers = [ maintainers.phreedom ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98eb1023cc27..6776dfe63577 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4144,6 +4144,8 @@ let urt = callPackage ../development/libraries/urt { }; + ustr = callPackage ../development/libraries/ustr { stdenv = overrideGCC stdenv gcc44; }; + ucommon = callPackage ../development/libraries/ucommon { }; vamp = callPackage ../development/libraries/audio/vamp { };