mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
7550a20a45
Icu is required for dependent packages to properly link against nuspell. This change makes enchant to compile again
33 lines
853 B
Nix
33 lines
853 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, icu, catch2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nuspell";
|
|
version = "5.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nuspell";
|
|
repo = "nuspell";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nGC8Um9GutJZXlUcUCK0IiHxMaZmeoe4febw/jC2dRU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
propagatedBuildInputs = [ icu ];
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
postPatch = ''
|
|
rm -rf external/Catch2
|
|
ln -sf ${catch2.src} external/Catch2
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|