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

36 lines
821 B
Nix
Raw Normal View History

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