2015-01-12 13:38:54 +01:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
|
|
|
|
let
|
2017-06-26 03:46:22 +02:00
|
|
|
version = "2.0.2";
|
2015-01-12 13:38:54 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "uthash-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
|
2017-06-26 03:46:22 +02:00
|
|
|
sha256 = "1la82gdlyl7m8ahdjirigwfh7zjgkc24cvydrqcri0vsvm8iv8rl";
|
2015-01-12 13:38:54 +01:00
|
|
|
};
|
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
dontBuild = false;
|
2015-01-12 13:38:54 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
2018-08-08 21:03:45 +02:00
|
|
|
checkInputs = [ perl ];
|
2015-01-12 13:38:54 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|