nixpkgs/pkgs/development/libraries/nuspell/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

36 lines
834 B
Nix

{ stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2, pandoc }:
stdenv.mkDerivation rec {
pname = "nuspell";
version = "4.2.0";
src = fetchFromGitHub {
owner = "nuspell";
repo = "nuspell";
rev = "v${version}";
sha256 = "sha256-sQ3Q2+FOf2bXCKcgd6XvEb+QZzzDccs/4+CpJbEd1PQ=";
};
nativeBuildInputs = [ cmake pkg-config pandoc ];
buildInputs = [ icu ];
outputs = [ "out" "lib" "dev" "man" ];
postPatch = ''
rm -rf external/Catch2
ln -sf ${catch2.src} external/Catch2
'';
postInstall = ''
rm -rf $out/share/doc
'';
meta = with stdenv.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;
};
}