Files
nixpkgs/pkgs/by-name/hf/hfst-ospell/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.0 KiB
Nix

{
lib,
stdenv,
autoreconfHook,
fetchFromGitHub,
icu,
libarchive,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hfst-ospell";
version = "0.5.4";
src = fetchFromGitHub {
owner = "hfst";
repo = "hfst-ospell";
tag = "v${finalAttrs.version}";
hash = "sha256-BmM0acqPL8qPOJ0KEkcI264xj89v+VaItZ0yS8QLF3o=";
};
buildInputs = [
icu
libarchive
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
# libxmlxx is listed as a dependency but Darwin build fails with it,
# might also be better in general since libxmlxx in Nixpkgs is 8 years old
# https://github.com/hfst/hfst-ospell/issues/48#issuecomment-546535653
configureFlags = [
"--without-libxmlpp"
"--without-tinyxml2"
];
meta = with lib; {
homepage = "https://github.com/hfst/hfst-ospell/";
description = "HFST spell checker library and command line tool";
license = licenses.asl20;
maintainers = with maintainers; [ lurkki ];
platforms = platforms.unix;
};
})