summary refs log tree commit diff
path: root/pkgs/development/libraries/uthash
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-01-12 13:38:54 +0100
committerVladimír Čunát <vcunat@gmail.com>2015-01-12 13:43:30 +0100
commit9274093a34806268862496b9028e10b2aa9f183a (patch)
treeed7b9ca9c65b47555305cb508f9719f5f0fccc6f /pkgs/development/libraries/uthash
parent1476240ba696f0b42154e9e742d1170effea1cab (diff)
downloadnixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar.gz
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar.bz2
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar.lz
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar.xz
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.tar.zst
nixpkgs-9274093a34806268862496b9028e10b2aa9f183a.zip
uthash: new package
It's headers only. Newer fontforge needs it.
Diffstat (limited to 'pkgs/development/libraries/uthash')
-rw-r--r--pkgs/development/libraries/uthash/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/uthash/default.nix b/pkgs/development/libraries/uthash/default.nix
new file mode 100644
index 00000000000..5f3b71131e0
--- /dev/null
+++ b/pkgs/development/libraries/uthash/default.nix
@@ -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;
+  };
+}
+