1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "xxHash-${version}";
5 version = "0.6.3.20171018";
6
7 src = fetchFromGitHub {
8 sha256 = "0061ivxpx0p24m4vg7kfx9fs9f0jxvv4g76bmyss5gp90p05hc18";
9 rev = "333804ccf0c0339451accac023deeab9e5f7c002";
10 repo = "xxHash";
11 owner = "Cyan4973";
12 };
13
14 outputs = [ "out" "dev" ];
15
16 makeFlags = [ "PREFIX=$(out)" "INCLUDEDIR=$(dev)/include" ];
17
18 meta = with stdenv.lib; {
19 description = "Extremely fast hash algorithm";
20 longDescription = ''
21 xxHash is an Extremely fast Hash algorithm, running at RAM speed limits.
22 It successfully completes the SMHasher test suite which evaluates
23 collision, dispersion and randomness qualities of hash functions. Code is
24 highly portable, and hashes are identical on all platforms (little / big
25 endian).
26 '';
27 homepage = https://github.com/Cyan4973/xxHash;
28 license = with licenses; [ bsd2 gpl2 ];
29 platforms = platforms.unix;
30 };
31}