mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
4e84d07589
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/uthash/versions
32 lines
724 B
Nix
32 lines
724 B
Nix
{ stdenv, fetchurl, perl }:
|
|
|
|
let
|
|
version = "2.1.0";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "uthash-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
|
|
sha256 = "17k6k97n20jpi9zj3lzvqfw8pv670r6rdqrjf8vrbx6hcj7csb0m";
|
|
};
|
|
|
|
dontBuild = false;
|
|
|
|
doCheck = true;
|
|
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;
|
|
};
|
|
}
|