mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
1bc9458486
Diff: https://github.com/maxbachmann/rapidfuzz-cpp/compare/v1.11.3...v2.0.0 Changelog: https://github.com/maxbachmann/rapidfuzz-cpp/blob/v2.0.0/CHANGELOG.md
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, catch2_3
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rapidfuzz-cpp";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxbachmann";
|
|
repo = "rapidfuzz-cpp";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-gLiITRCxX3nkzrlvU1/ZPxEo2v7q79/MwrnURUjrY28=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = lib.optionals finalAttrs.finalPackage.doCheck [
|
|
"-DRAPIDFUZZ_BUILD_TESTING=ON"
|
|
];
|
|
|
|
CXXFLAGS = lib.optionals stdenv.cc.isClang [
|
|
# error: no member named 'fill' in namespace 'std'
|
|
"-include algorithm"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
catch2_3
|
|
];
|
|
|
|
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/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|