Files
nixpkgs/pkgs/by-name/lt/lttoolbox/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

59 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
autoconf,
automake,
pkg-config,
utf8cpp,
libtool,
libxml2,
icu,
python3,
}:
stdenv.mkDerivation rec {
pname = "lttoolbox";
version = "3.7.6";
src = fetchFromGitHub {
owner = "apertium";
repo = "lttoolbox";
tag = "v${version}";
hash = "sha256-T92TEhrWwPYW8e49rc0jfM0C3dmNYtuexhO/l5s+tQ0=";
};
nativeBuildInputs = [
autoreconfHook
autoconf
automake
pkg-config
utf8cpp
libtool
];
buildInputs = [
libxml2
icu
];
buildFlags = [
"CPPFLAGS=-I${utf8cpp}/include/utf8cpp"
];
nativeCheckInputs = [ python3 ];
doCheck = true;
checkPhase = ''
python3 tests/run_tests.py
'';
meta = {
description = "Finite state compiler, processor and helper tools used by apertium";
homepage = "https://github.com/apertium/lttoolbox";
maintainers = with lib.maintainers; [ onthestairs ];
changelog = "https://github.com/apertium/lttoolbox/releases/tag/v${version}";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}