f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
32 lines
896 B
Nix
32 lines
896 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pandoc, pkg-config, icu, catch2_3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nuspell";
|
|
version = "5.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nuspell";
|
|
repo = "nuspell";
|
|
rev = "v${version}";
|
|
hash = "sha256-U/lHSxpKsBnamf4ikE2aIjEPSU5fxjtuSmhZR0jxMAI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pandoc pkg-config ];
|
|
buildInputs = [ catch2_3 ];
|
|
propagatedBuildInputs = [ icu ];
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=YES" ];
|
|
doCheck = true;
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
meta = with lib; {
|
|
description = "Free and open source C++ spell checking library";
|
|
mainProgram = "nuspell";
|
|
homepage = "https://nuspell.github.io/";
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
license = licenses.lgpl3Plus;
|
|
changelog = "https://github.com/nuspell/nuspell/blob/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|