uthash: new package

It's headers only. Newer fontforge needs it.
This commit is contained in:
Vladimír Čunát 2015-01-12 13:38:54 +01:00
parent 1476240ba6
commit 9274093a34
2 changed files with 35 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -7157,6 +7157,8 @@ let
libusb = libusb1;
};
uthash = callPackage ../development/libraries/uthash { };
ucommon = callPackage ../development/libraries/ucommon { };
v8 = callPackage ../development/libraries/v8 {