mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "krep";
|
|
version = "3.1.0";
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "davidesantangelo";
|
|
repo = "krep";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Aswyc1TDHRfFYutFpKnIbs/1puYeztVgowqbi+D4J0Q=";
|
|
};
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"ENABLE_ARCH_DETECTION=0"
|
|
"HAS_AVX512=0"
|
|
"HAS_AVX2=0"
|
|
];
|
|
|
|
installFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
doCheck = true;
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
meta = {
|
|
description = "Blazingly fast string search utility designed for performance-critical applications";
|
|
homepage = "https://github.com/davidesantangelo/krep";
|
|
changelog = "https://github.com/davidesantangelo/krep/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [
|
|
codebam
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|