From 9274093a34806268862496b9028e10b2aa9f183a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 12 Jan 2015 13:38:54 +0100 Subject: [PATCH] uthash: new package It's headers only. Newer fontforge needs it. --- pkgs/development/libraries/uthash/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/libraries/uthash/default.nix diff --git a/pkgs/development/libraries/uthash/default.nix b/pkgs/development/libraries/uthash/default.nix new file mode 100644 index 000000000000..5f3b71131e0c --- /dev/null +++ b/pkgs/development/libraries/uthash/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, perl }: + +let + version = "1.9.9"; +in +stdenv.mkDerivation rec { + name = "uthash-${version}"; + + src = fetchurl { + url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz"; + sha256 = "035z3cs5ignywgh4wqxx358a2nhn3lj0x1ifij6vj0yyyhah3wgj"; + }; + + buildPhase = ":"; + + buildInputs = stdenv.lib.optional doCheck perl; + + doCheck = true; + checkTarget = "-C tests/"; + + installPhase = '' + mkdir -p "$out/include" + cp ./src/* "$out/include/" + ''; + + meta = with stdenv.lib; { + description = "A hash table for C structures"; + homepage = http://troydhanson.github.io/uthash; + license = licenses.bsd2; # it's one-clause, actually, as it's source-only + platforms = platforms.all; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71ceb466d267..95b5223242e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7157,6 +7157,8 @@ let libusb = libusb1; }; + uthash = callPackage ../development/libraries/uthash { }; + ucommon = callPackage ../development/libraries/ucommon { }; v8 = callPackage ../development/libraries/v8 {