1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/pkgs/development/libraries/uthash/default.nix

33 lines
731 B
Nix
Raw Normal View History

{ stdenv, fetchurl, perl }:
let
version = "2.1.0";
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "uthash";
inherit version;
src = fetchurl {
url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
sha256 = "17k6k97n20jpi9zj3lzvqfw8pv670r6rdqrjf8vrbx6hcj7csb0m";
};
dontBuild = false;
doCheck = true;
2018-08-08 20:03:45 +01:00
checkInputs = [ perl ];
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;
};
}