2022-10-04 18:05:36 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2 }:
|
2019-02-03 12:08:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nuspell";
|
2023-09-16 16:13:31 +00:00
|
|
|
version = "5.1.3";
|
2019-02-03 12:08:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nuspell";
|
|
|
|
repo = "nuspell";
|
|
|
|
rev = "v${version}";
|
2023-09-16 16:13:31 +00:00
|
|
|
hash = "sha256-ww7Kqzlnf7065i9RZLeFDUOPBMCVgV/6sBnN0+WvBTk=";
|
2019-02-03 12:08:43 +00:00
|
|
|
};
|
|
|
|
|
2022-10-04 18:05:36 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2023-09-16 16:13:31 +00:00
|
|
|
buildInputs = [ catch2 ];
|
2023-03-28 22:20:11 +00:00
|
|
|
propagatedBuildInputs = [ icu ];
|
2019-02-03 12:08:43 +00:00
|
|
|
|
2023-09-16 16:13:31 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=YES" ];
|
|
|
|
doCheck = true;
|
2019-08-12 17:51:58 +00:00
|
|
|
|
2023-09-16 16:13:31 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2019-02-03 12:08:43 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-02-03 12:08:43 +00:00
|
|
|
description = "Free and open source C++ spell checking library";
|
|
|
|
homepage = "https://nuspell.github.io/";
|
2020-12-20 04:20:00 +00:00
|
|
|
platforms = platforms.all;
|
2019-02-03 12:08:43 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2020-10-23 23:23:20 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2022-10-04 18:05:36 +00:00
|
|
|
changelog = "https://github.com/nuspell/nuspell/blob/v${version}/CHANGELOG.md";
|
2019-02-03 12:08:43 +00:00
|
|
|
};
|
|
|
|
}
|