02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
45 lines
928 B
Nix
45 lines
928 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, catch2_3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rapidfuzz-cpp";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxbachmann";
|
|
repo = "rapidfuzz-cpp";
|
|
rev = "v${version}";
|
|
hash = "sha256-ogj8eFkiDtjFcBb3Yip909gKBIeALsoH3LnRIjQmLMA=";
|
|
};
|
|
|
|
patches = [
|
|
./dont-fetch-project-options.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = lib.optionals doCheck [
|
|
"-DRAPIDFUZZ_BUILD_TESTING=ON"
|
|
];
|
|
|
|
checkInputs = [
|
|
catch2_3
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance";
|
|
homepage = "https://github.com/maxbachmann/rapidfuzz-cpp";
|
|
changelog = "https://github.com/maxbachmann/rapidfuzz-cpp/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|