mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xxHash";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cyan4973";
|
|
repo = "xxHash";
|
|
rev = "v${version}";
|
|
hash = "sha256-kofPs01jb189LUjYHHt+KxDifZQWl0Hm779711mvWtI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
# Using unofficial CMake build script to install CMake module files.
|
|
cmakeDir = "../cmake_unofficial";
|
|
|
|
meta = with 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 ];
|
|
mainProgram = "xxhsum";
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.all;
|
|
pkgConfigModules = [
|
|
"libxxhash"
|
|
];
|
|
};
|
|
}
|