jarowinkler-cpp: init at 1.0.0
This commit is contained in:
parent
463ca4ee10
commit
a4ba2bd977
2 changed files with 43 additions and 0 deletions
41
pkgs/development/libraries/jarowinkler-cpp/default.nix
Normal file
41
pkgs/development/libraries/jarowinkler-cpp/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, catch2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jarowinkler-cpp";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maxbachmann";
|
||||
repo = "jarowinkler-cpp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6dIyCyoPs/2wHyGqlE+NC0pwz5ggS5edhN4Jbltx0jg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optionals doCheck [
|
||||
"-DRAPIDFUZZ_BUILD_TESTING=ON"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
catch2
|
||||
];
|
||||
|
||||
# uses unreleased Catch2 version 3
|
||||
doCheck = false;
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -17917,6 +17917,8 @@ with pkgs;
|
|||
|
||||
jansson = callPackage ../development/libraries/jansson { };
|
||||
|
||||
jarowinkler-cpp = callPackage ../development/libraries/jarowinkler-cpp { };
|
||||
|
||||
jasper = callPackage ../development/libraries/jasper { };
|
||||
|
||||
jbig2dec = callPackage ../development/libraries/jbig2dec { };
|
||||
|
|
Loading…
Reference in a new issue