aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/ustr
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom.stdin@gmail.com>2011-03-27 04:46:05 +0000
committerEvgeny Egorochkin <phreedom.stdin@gmail.com>2011-03-27 04:46:05 +0000
commit836b0d259de1cb8ac47771f994e895ac5079c562 (patch)
tree8e1247d87b0eb75d9fac8c2f37279fdce5ded5ea /pkgs/development/libraries/ustr
parent8113129d1ac728eb0fe5fa336f58ae322aee1f0e (diff)
ustr: packaged
svn path=/nixpkgs/trunk/; revision=26540
Diffstat (limited to 'pkgs/development/libraries/ustr')
-rw-r--r--pkgs/development/libraries/ustr/default.nix24
1 files changed, 24 insertions, 0 deletions
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