2015-01-12 12:38:54 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
|
|
|
|
let
|
2019-01-02 00:55:46 +00:00
|
|
|
version = "2.1.0";
|
2015-01-12 12:38:54 +00:00
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "uthash";
|
|
|
|
inherit version;
|
2015-01-12 12:38:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
|
2019-01-02 00:55:46 +00:00
|
|
|
sha256 = "17k6k97n20jpi9zj3lzvqfw8pv670r6rdqrjf8vrbx6hcj7csb0m";
|
2015-01-12 12:38:54 +00:00
|
|
|
};
|
|
|
|
|
2016-05-04 10:08:35 +00:00
|
|
|
dontBuild = false;
|
2015-01-12 12:38:54 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2018-08-08 19:03:45 +00:00
|
|
|
checkInputs = [ perl ];
|
2015-01-12 12:38:54 +00:00
|
|
|
checkTarget = "-C tests/";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/include"
|
|
|
|
cp ./src/* "$out/include/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A hash table for C structures";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://troydhanson.github.io/uthash";
|
2015-01-12 12:38:54 +00:00
|
|
|
license = licenses.bsd2; # it's one-clause, actually, as it's source-only
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|