rapidfuzz-cpp: init at 1.0.1

This commit is contained in:
Robert Schütz 2022-04-23 21:15:46 +00:00 committed by Robert Schütz
parent 4fabde08f9
commit 463ca4ee10
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, catch2
}:
stdenv.mkDerivation rec {
pname = "rapidfuzz-cpp";
version = "1.0.1";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "rapidfuzz-cpp";
rev = "v${version}";
hash = "sha256-331iW0nu5MlxuKNTgMkRSASnglxn+hEWBhRMnw0lY2Y=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = lib.optionals doCheck [
"-DRAPIDFUZZ_BUILD_TESTING=ON"
];
checkInputs = [
catch2
];
# uses unreleased Catch2 version 3
doCheck = false;
meta = {
description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance";
homepage = "https://github.com/maxbachmann/rapidfuzz-cpp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
platforms = lib.platforms.unix;
};
}

View File

@ -20210,6 +20210,8 @@ with pkgs;
rapidcheck = callPackage ../development/libraries/rapidcheck {};
rapidfuzz-cpp = callPackage ../development/libraries/rapidfuzz-cpp { };
rapidjson = callPackage ../development/libraries/rapidjson {};
rapidxml = callPackage ../development/libraries/rapidxml {};