Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions pkgs/by-name/lt/lttoolbox/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
autoconf,
automake,
pkg-config,
Expand All @@ -15,25 +16,17 @@

stdenv.mkDerivation rec {
pname = "lttoolbox";
version = "3.7.1";
version = "3.7.6";

src = fetchFromGitHub {
owner = "apertium";
repo = "lttoolbox";
tag = "v${version}";
hash = "sha256-3lHXKtwQSrMGQEGOGr27e3kB2qKkTFZcEzeAnIm89Rg=";
hash = "sha256-T92TEhrWwPYW8e49rc0jfM0C3dmNYtuexhO/l5s+tQ0=";
};

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 = [
autoreconfHook
autoconf
automake
pkg-config
Expand All @@ -47,12 +40,11 @@ stdenv.mkDerivation rec {
buildFlags = [
"CPPFLAGS=-I${utf8cpp}/include/utf8cpp"
];
configurePhase = ''
./autogen.sh --prefix $out
'';

nativeCheckInputs = [ python3 ];
doCheck = true;
checkPhase = ''
${python3}/bin/python3 tests/run_tests.py
python3 tests/run_tests.py
'';

meta = with lib; {
Expand Down