2017-10-20 05:57:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xxHash";
|
2019-08-21 08:04:32 +01:00
|
|
|
version = "0.7.1";
|
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-08-21 08:04:32 +01:00
|
|
|
sha256 = "0hh1ypwk86m3b0x4433k95f94b48kvl7s79dml0f3g0cv8jdvkgw";
|
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;
|
|
|
|
};
|
|
|
|
}
|