nixpkgs-suyu/pkgs/development/libraries/jarowinkler-cpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
755 B
Nix
Raw Normal View History

2022-04-23 23:24:06 +02:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, catch2_3
2022-04-23 23:24:06 +02:00
}:
stdenv.mkDerivation rec {
pname = "jarowinkler-cpp";
version = "1.0.1";
2022-04-23 23:24:06 +02:00
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "jarowinkler-cpp";
rev = "v${version}";
hash = "sha256-3/x0fyaDJTouBKbif0ALgMzht6HMEGHNw8g8zQlUcNk=";
2022-04-23 23:24:06 +02:00
};
nativeBuildInputs = [
cmake
];
cmakeFlags = lib.optionals doCheck [
"-DJARO_WINKLER_BUILD_TESTING=ON"
2022-04-23 23:24:06 +02:00
];
checkInputs = [
catch2_3
2022-04-23 23:24:06 +02:00
];
doCheck = true;
2022-04-23 23:24:06 +02:00
meta = {
description = "Fast Jaro and Jaro-Winkler distance";
homepage = "https://github.com/maxbachmann/jarowinkler-cpp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
platforms = lib.platforms.unix;
};
}