depot/third_party/nixpkgs/pkgs/development/libraries/nuspell/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
852 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2_3 }:
stdenv.mkDerivation rec {
pname = "nuspell";
version = "5.1.4";
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
hash = "sha256-KteLH031QP8MunQXsodzsPhD/YN9n3O7b2kb/1mFQRY=";
};
nativeBuildInputs = [ cmake 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";
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";
};
}