Jan Tojnar e286e1cfa0 Merge branch 'staging-next' into staging
- boost 167 removed on staging-next (7915d1e03f93f3072ab397448830d028202e5d3d) × boost attributes are inherited on staging (d20aa4955d4c31d8393753ddf088e1ee82c5d12e)

- linux kernels were moved to linux-kernels.nix on staging-next (c62f911507977ac67fd5e8547af2d1071c5e0891) × hardened kernels are versioned on staging (a5341beb789c66ed24a11396dda28f2a1303768e) + removed linux_5_12 (e55554491df6e7b789d7f3d6a3b354df3575e1c6)

- conflict in node-packages – I regenerated it using node2nix from nixos-unstable (does not build on staging)
2021-08-17 18:52:37 +02:00

59 lines
1.0 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;
};
}