nixpkgs/pkgs/development/libraries/nuspell/default.nix

37 lines
849 B
Nix
Raw Normal View History

2020-11-03 03:20:41 +00:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, icu, catch2, pandoc }:
2019-02-03 12:08:43 +00:00
stdenv.mkDerivation rec {
pname = "nuspell";
2020-11-03 03:20:41 +00:00
version = "4.0.1";
2019-02-03 12:08:43 +00:00
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
2020-11-03 03:20:41 +00:00
sha256 = "1p90a3wv4b8m5fdpbnr9cyd1x3a504q9rc4cghq02xff63h5gclf";
2019-02-03 12:08:43 +00:00
};
2020-11-03 03:20:41 +00:00
nativeBuildInputs = [ cmake pkgconfig pandoc ];
2019-02-03 12:08:43 +00:00
buildInputs = [ boost icu ];
2019-08-12 17:51:58 +00:00
outputs = [ "out" "lib" "dev" "man" ];
2019-02-03 12:08:43 +00:00
enableParallelBuilding = true;
2019-04-02 08:03:58 +00:00
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
2019-02-03 12:08:43 +00:00
'';
2019-08-12 17:51:58 +00:00
postInstall = ''
rm -rf $out/share/doc
'';
2019-02-03 12:08:43 +00:00
meta = with stdenv.lib; {
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
maintainers = with maintainers; [ fpletz ];
license = licenses.lgpl3Plus;
2019-02-03 12:08:43 +00:00
};
}