Unverified Commit 6d1e7311 authored by Mathew Polzin's avatar Mathew Polzin Committed by GitHub
Browse files

lttoolbox: 3.7.1 -> 3.7.6 (#392475)

parents f7357cf4 aec25933
Loading
Loading
Loading
Loading
+7 −15
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  autoreconfHook,
  autoconf,
  automake,
  pkg-config,
@@ -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
@@ -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; {