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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
832 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2, pandoc }:
2019-02-03 15:08:43 +03:00
stdenv.mkDerivation rec {
pname = "nuspell";
2021-12-07 21:25:22 +03:00
version = "5.0.1";
2019-02-03 15:08:43 +03:00
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
2021-12-07 21:25:22 +03:00
sha256 = "sha256-ogA7ycqdMUTN/KHV2oZzytnhZ7XVuhx+ArXZqLlmwjk=";
2019-02-03 15:08:43 +03:00
};
nativeBuildInputs = [ cmake pkg-config pandoc ];
2020-11-19 19:15:57 +03:00
buildInputs = [ icu ];
2019-02-03 15:08:43 +03:00
2019-08-12 20:51:58 +03:00
outputs = [ "out" "lib" "dev" "man" ];
2019-04-02 11:03:58 +03:00
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
2019-02-03 15:08:43 +03:00
'';
2019-08-12 20:51:58 +03:00
postInstall = ''
rm -rf $out/share/doc
'';
meta = with lib; {
2019-02-03 15:08:43 +03:00
description = "Free and open source C++ spell checking library";
homepage = "https://nuspell.github.io/";
2020-12-20 07:20:00 +03:00
platforms = platforms.all;
2019-02-03 15:08:43 +03:00
maintainers = with maintainers; [ fpletz ];
license = licenses.lgpl3Plus;
2019-02-03 15:08:43 +03:00
};
}