mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
3d6db82cbd
While at it added testsuite support. Changes: https://github.com/nuspell/nuspell/releases/tag/v5.1.3
32 lines
848 B
Nix
32 lines
848 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nuspell";
|
|
version = "5.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nuspell";
|
|
repo = "nuspell";
|
|
rev = "v${version}";
|
|
hash = "sha256-ww7Kqzlnf7065i9RZLeFDUOPBMCVgV/6sBnN0+WvBTk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ catch2 ];
|
|
propagatedBuildInputs = [ icu ];
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=YES" ];
|
|
doCheck = true;
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
meta = with lib; {
|
|
description = "Free and open source C++ spell checking library";
|
|
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";
|
|
};
|
|
}
|