Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 58 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 autoreconfHook, 7 autoconf, 8 automake, 9 pkg-config, 10 utf8cpp, 11 libtool, 12 libxml2, 13 icu, 14 python3, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "lttoolbox"; 19 version = "3.7.6"; 20 21 src = fetchFromGitHub { 22 owner = "apertium"; 23 repo = "lttoolbox"; 24 tag = "v${version}"; 25 hash = "sha256-T92TEhrWwPYW8e49rc0jfM0C3dmNYtuexhO/l5s+tQ0="; 26 }; 27 28 nativeBuildInputs = [ 29 autoreconfHook 30 autoconf 31 automake 32 pkg-config 33 utf8cpp 34 libtool 35 ]; 36 buildInputs = [ 37 libxml2 38 icu 39 ]; 40 buildFlags = [ 41 "CPPFLAGS=-I${utf8cpp}/include/utf8cpp" 42 ]; 43 44 nativeCheckInputs = [ python3 ]; 45 doCheck = true; 46 checkPhase = '' 47 python3 tests/run_tests.py 48 ''; 49 50 meta = { 51 description = "Finite state compiler, processor and helper tools used by apertium"; 52 homepage = "https://github.com/apertium/lttoolbox"; 53 maintainers = with lib.maintainers; [ onthestairs ]; 54 changelog = "https://github.com/apertium/lttoolbox/releases/tag/v${version}"; 55 license = lib.licenses.gpl2; 56 platforms = lib.platforms.linux ++ lib.platforms.darwin; 57 }; 58}