2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2_3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nuspell";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nuspell";
|
|
|
|
repo = "nuspell";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-KteLH031QP8MunQXsodzsPhD/YN9n3O7b2kb/1mFQRY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [ catch2_3 ];
|
2023-04-12 12:48:02 +00:00
|
|
|
propagatedBuildInputs = [ icu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=YES" ];
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Free and open source C++ spell checking library";
|
|
|
|
homepage = "https://nuspell.github.io/";
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2022-10-21 18:38:19 +00:00
|
|
|
changelog = "https://github.com/nuspell/nuspell/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|