2017-10-20 05:57:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xxHash-${version}";
|
2019-03-15 20:10:37 +00:00
|
|
|
version = "0.7.0";
|
2017-10-20 05:57:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cyan4973";
|
2019-02-24 19:19:08 +00:00
|
|
|
repo = "xxHash";
|
|
|
|
rev = "v${version}";
|
2019-03-15 20:10:37 +00:00
|
|
|
sha256 = "19iyr7x0s7in9kp9wrj4iimdx58nv6jndz9x5ndnl07gd90y7jxb";
|
2017-10-20 05:57:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2019-03-15 20:10:37 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
2017-10-20 05:57:45 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|