2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2, pandoc }:
|
2019-02-03 12:08:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nuspell";
|
2021-07-28 21:07:32 +01:00
|
|
|
version = "5.0.0";
|
2019-02-03 12:08:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nuspell";
|
|
|
|
repo = "nuspell";
|
|
|
|
rev = "v${version}";
|
2021-07-28 21:07:32 +01:00
|
|
|
sha256 = "039ryhwfbbrrhavzyr999kngj10nk9n81i6qigxj6igfl4fzjy87";
|
2019-02-03 12:08:43 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config pandoc ];
|
2020-11-19 16:15:57 +00:00
|
|
|
buildInputs = [ icu ];
|
2019-02-03 12:08:43 +00:00
|
|
|
|
2019-08-12 18:51:58 +01:00
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
2019-04-02 09:03:58 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf external/Catch2
|
|
|
|
ln -sf ${catch2.src} external/Catch2
|
2019-02-03 12:08:43 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-12 18:51:58 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/share/doc
|
|
|
|
'';
|
|
|
|
|
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-24 00:23:20 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2019-02-03 12:08:43 +00:00
|
|
|
};
|
|
|
|
}
|