nixpkgs/pkgs/development/libraries/xxHash/default.nix

33 lines
984 B
Nix
Raw Normal View History

2017-10-20 07:57:45 +03:00
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "xxHash";
2020-03-06 05:26:57 +03:00
version = "0.7.3";
2017-10-20 07:57:45 +03:00
src = fetchFromGitHub {
owner = "Cyan4973";
2019-02-24 22:19:08 +03:00
repo = "xxHash";
rev = "v${version}";
2020-03-06 05:26:57 +03:00
sha256 = "0bin0jch6lbzl4f8y052a7azfgq2n7iwqihzgqmcccv5vq4vcx5a";
2017-10-20 07:57:45 +03: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).
'';
2020-03-06 05:26:57 +03:00
homepage = "https://github.com/Cyan4973/xxHash";
2017-10-20 07:57:45 +03:00
license = with licenses; [ bsd2 gpl2 ];
2019-03-15 23:10:37 +03:00
maintainers = with maintainers; [ orivej ];
2017-10-20 07:57:45 +03:00
platforms = platforms.unix;
};
}