e286e1cfa0
- boost 167 removed on staging-next (7915d1e03f
) × boost attributes are inherited on staging (d20aa4955d
) - linux kernels were moved to linux-kernels.nix on staging-next (c62f911507
) × hardened kernels are versioned on staging (a5341beb78
) + removed linux_5_12 (e55554491d
) - conflict in node-packages – I regenerated it using node2nix from nixos-unstable (does not build on staging)
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, aspell
|
|
, pkg-config
|
|
, glib
|
|
, hunspell
|
|
, hspell
|
|
, nuspell
|
|
, unittest-cpp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "enchant";
|
|
version = "2.3.1";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-e0sa/PLNi/ppHe6mGIQE0zfyMXS7w5ucKt0r80Bzbpw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
hunspell
|
|
nuspell
|
|
];
|
|
|
|
checkInputs = [
|
|
unittest-cpp
|
|
];
|
|
|
|
# libtool puts these to .la files
|
|
propagatedBuildInputs = [
|
|
hspell
|
|
aspell
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
configureFlags = [
|
|
"--enable-relocatable" # needed for tests
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Generic spell checking library";
|
|
homepage = "https://abiword.github.io/enchant/";
|
|
license = licenses.lgpl21Plus; # with extra provision for non-free checkers
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|