about summary refs log tree commit diff
path: root/pkgs/development/libraries/xxHash
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-10-20 00:57:45 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-10-20 00:59:15 -0400
commit4d85689cf37f1ac5cfcbecd3cb96385a110a1656 (patch)
tree3e7cda42223ca1a543e660deed98712352d74a50 /pkgs/development/libraries/xxHash
parent6c43d2a9198503f8c57e9a7a223a077d2a718df1 (diff)
xxHash: init at 0.6.3.20171018
Diffstat (limited to 'pkgs/development/libraries/xxHash')
-rw-r--r--pkgs/development/libraries/xxHash/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/xxHash/default.nix b/pkgs/development/libraries/xxHash/default.nix
new file mode 100644
index 0000000000000..d702500bf7195
--- /dev/null
+++ b/pkgs/development/libraries/xxHash/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "xxHash-${version}";
+  version = "0.6.3.20171018";
+
+  src = fetchFromGitHub {
+    sha256 = "0061ivxpx0p24m4vg7kfx9fs9f0jxvv4g76bmyss5gp90p05hc18";
+    rev = "333804ccf0c0339451accac023deeab9e5f7c002";
+    repo = "xxHash";
+    owner = "Cyan4973";
+  };
+
+  outputs = [ "out" "dev" ];
+
+  makeFlags = [ "PREFIX=$(out)" "INCLUDEDIR=$(dev)/include" ];
+
+  meta = with stdenv.lib; {
+    description = "Extremely fast hash algorithm";
+    longDescription = ''
+      xxHash is an Extremely fast Hash algorithm, running at RAM speed limits.
+      It successfully completes the SMHasher test suite which evaluates
+      collision, dispersion and randomness qualities of hash functions. Code is
+      highly portable, and hashes are identical on all platforms (little / big
+      endian).
+    '';
+    homepage = https://github.com/Cyan4973/xxHash;
+    license = with licenses; [ bsd2 gpl2 ];
+    platforms = platforms.unix;
+  };
+}