nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "xxHash"; 10 version = "0.8.3"; 11 12 src = fetchFromGitHub { 13 owner = "Cyan4973"; 14 repo = "xxHash"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-h6kohM+NxvQ89R9NEXZcYBG2wPOuB4mcyPfofKrx9wQ="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ]; 22 23 # Using unofficial CMake build script to install CMake module files. 24 cmakeDir = "../cmake_unofficial"; 25 26 meta = { 27 description = "Extremely fast hash algorithm"; 28 longDescription = '' 29 xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. 30 It successfully completes the SMHasher test suite which evaluates 31 collision, dispersion and randomness qualities of hash functions. Code is 32 highly portable, and hashes are identical on all platforms (little / big 33 endian). 34 ''; 35 homepage = "https://github.com/Cyan4973/xxHash"; 36 license = with lib.licenses; [ 37 bsd2 38 gpl2 39 ]; 40 mainProgram = "xxhsum"; 41 maintainers = [ ]; 42 platforms = lib.platforms.all; 43 pkgConfigModules = [ 44 "libxxhash" 45 ]; 46 }; 47})