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

36 lines
834 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2, pandoc }:
2019-02-03 04:08:43 -08:00
stdenv.mkDerivation rec {
pname = "nuspell";
2020-11-19 08:15:57 -08:00
version = "4.2.0";
2019-02-03 04:08:43 -08:00
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
2020-11-19 08:15:57 -08:00
sha256 = "sha256-sQ3Q2+FOf2bXCKcgd6XvEb+QZzzDccs/4+CpJbEd1PQ=";
2019-02-03 04:08:43 -08:00
};
nativeBuildInputs = [ cmake pkg-config pandoc ];
2020-11-19 08:15:57 -08:00
buildInputs = [ icu ];
2019-02-03 04:08:43 -08:00
2019-08-12 10:51:58 -07:00
outputs = [ "out" "lib" "dev" "man" ];
2019-04-02 01:03:58 -07:00
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
2019-02-03 04:08:43 -08:00
'';
2019-08-12 10:51:58 -07:00
postInstall = ''
rm -rf $out/share/doc
'';
2019-02-03 04:08:43 -08:00
meta = with stdenv.lib; {
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
2020-12-19 20:20:00 -08:00
platforms = platforms.all;
2019-02-03 04:08:43 -08:00
maintainers = with maintainers; [ fpletz ];
license = licenses.lgpl3Plus;
2019-02-03 04:08:43 -08:00
};
}