nixpkgs-suyu/pkgs/development/libraries/nuspell/default.nix
2019-11-28 08:41:27 -08:00

35 lines
811 B
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, icu, catch2, ronn }:
stdenv.mkDerivation rec {
pname = "nuspell";
version = "3.0.0";
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
sha256 = "1cyvvf5f92a777qgh00ja43z43j5nhc9dw5l3wvw9j6j9bqc4i8p";
};
nativeBuildInputs = [ cmake pkgconfig ronn ];
buildInputs = [ boost icu ];
outputs = [ "out" "lib" "dev" "man" ];
enableParallelBuilding = true;
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
'';
postInstall = ''
rm -rf $out/share/doc
'';
meta = with stdenv.lib; {
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
maintainers = with maintainers; [ fpletz ];
};
}