mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
rapidfuzz-cpp: init at 1.0.1
This commit is contained in:
parent
4fabde08f9
commit
463ca4ee10
41
pkgs/development/libraries/rapidfuzz-cpp/default.nix
Normal file
41
pkgs/development/libraries/rapidfuzz-cpp/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user