nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 976 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 versionCheckHook, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "krep"; 10 version = "1.1.2"; 11 12 src = fetchFromGitHub { 13 owner = "davidesantangelo"; 14 repo = "krep"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-mZ5ki1f0q4k3imxeF9qbn8ZU/at+NNBhroau/5Z4WU4="; 17 }; 18 19 makeFlags = [ 20 "CC=${stdenv.cc.targetPrefix}cc" 21 "ENABLE_ARCH_DETECTION=0" 22 ]; 23 24 installFlags = [ 25 "PREFIX=${placeholder "out"}" 26 ]; 27 28 doCheck = true; 29 doInstallCheck = true; 30 nativeInstallCheckInputs = [ versionCheckHook ]; 31 32 meta = { 33 description = "Blazingly fast string search utility designed for performance-critical applications"; 34 homepage = "https://github.com/davidesantangelo/krep"; 35 changelog = "https://github.com/davidesantangelo/krep/releases/tag/v${finalAttrs.version}"; 36 license = lib.licenses.bsd2; 37 maintainers = with lib.maintainers; [ 38 codebam 39 ]; 40 platforms = lib.platforms.unix; 41 }; 42})