Merge pull request #203480 from onthestairs/init-lttoolbox

lttoolbox: init at 3.7.1
This commit is contained in:
Peder Bergebakken Sundt 2023-12-09 01:53:15 +01:00 committed by GitHub
commit d54e864217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,65 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoconf
, automake
, pkg-config
, utf8cpp
, libtool
, libxml2
, icu
, python3
}:
stdenv.mkDerivation rec {
pname = "lttoolbox";
version = "3.7.1";
src = fetchFromGitHub {
owner = "apertium";
repo = "lttoolbox";
rev = "refs/tags/v${version}";
hash = "sha256-3lHXKtwQSrMGQEGOGr27e3kB2qKkTFZcEzeAnIm89Rg=";
};
patches = [
# can be removed once the version goes past this commit
# https://github.com/apertium/lttoolbox/commit/e682fe18a96d5a865cfbd3e5661dbc7b3ace1821
(fetchpatch {
url = "https://github.com/apertium/lttoolbox/commit/e682fe18a96d5a865cfbd3e5661dbc7b3ace1821.patch";
hash = "sha256-VeP8Mv2KYxX+eVjIRw/jHbURaWN665+fiFaoT3VxAno=";
})
];
nativeBuildInputs = [
autoconf
automake
pkg-config
utf8cpp
libtool
];
buildInputs = [
libxml2
icu
];
buildFlags = [
"CPPFLAGS=-I${utf8cpp}/include/utf8cpp"
];
configurePhase = ''
./autogen.sh --prefix $out
'';
doCheck = true;
checkPhase = ''
${python3}/bin/python3 tests/run_tests.py
'';
meta = with lib; {
description = "Finite state compiler, processor and helper tools used by apertium";
homepage = "https://github.com/apertium/lttoolbox";
maintainers = with maintainers; [ onthestairs ];
changelog = "https://github.com/apertium/lttoolbox/releases/tag/v${version}";
license = licenses.gpl2;
platforms = platforms.linux ++ platforms.darwin;
};
}

View file

@ -10041,6 +10041,8 @@ with pkgs;
lua = lua5_2_compat;
};
lttoolbox = callPackage ../applications/misc/lttoolbox { };
ltwheelconf = callPackage ../applications/misc/ltwheelconf { };
lunatask = callPackage ../applications/misc/lunatask { };