blob: b667dea8d49ffd9270e10d3d1935bf41f94ded73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, icu, catch2 }:
stdenv.mkDerivation rec {
name = "nuspell-${version}";
version = "2.2.0";
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
sha256 = "17khkb1sxn1p6rfql72l7a4lxafbxj0dwi95hsmyi6wajvfrg9sy";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ boost icu ];
enableParallelBuilding = true;
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
'';
meta = with stdenv.lib; {
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
maintainers = with maintainers; [ fpletz ];
};
}
|