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

30 lines
716 B
Nix
Raw Normal View History

2019-04-02 10:03:58 +02:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, icu, catch2 }:
2019-02-03 13:08:43 +01:00
stdenv.mkDerivation rec {
name = "nuspell-${version}";
2019-04-02 10:03:58 +02:00
version = "2.2.0";
2019-02-03 13:08:43 +01:00
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
2019-04-02 10:03:58 +02:00
sha256 = "17khkb1sxn1p6rfql72l7a4lxafbxj0dwi95hsmyi6wajvfrg9sy";
2019-02-03 13:08:43 +01:00
};
2019-04-02 10:03:58 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
2019-02-03 13:08:43 +01:00
buildInputs = [ boost icu ];
enableParallelBuilding = true;
2019-04-02 10:03:58 +02:00
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
2019-02-03 13:08:43 +01:00
'';
meta = with stdenv.lib; {
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
maintainers = with maintainers; [ fpletz ];
};
}