blob: fb19f998423bc5640022c0ffa3e7ea04754b53bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, catch2_3
}:
stdenv.mkDerivation rec {
pname = "jarowinkler-cpp";
version = "1.0.2";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "jarowinkler-cpp";
rev = "v${version}";
hash = "sha256-GuwDSCYTfSwqTnzZSft3ufVSKL7255lVvbJhBxKxjJw=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = lib.optionals doCheck [
"-DJARO_WINKLER_BUILD_TESTING=ON"
];
nativeCheckInputs = [
catch2_3
];
doCheck = true;
meta = {
description = "Fast Jaro and Jaro-Winkler distance";
homepage = "https://github.com/maxbachmann/jarowinkler-cpp";
changelog = "https://github.com/maxbachmann/jarowinkler-cpp/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
platforms = lib.platforms.unix;
};
}
|