1{ lib, stdenv, fetchFromGitHub, bison, flex, perl, }:
2
3stdenv.mkDerivation rec {
4 pname = "jbofihe";
5 version = "0.43";
6
7 src = fetchFromGitHub {
8 owner = "lojban";
9 repo = "jbofihe";
10 rev = "v${version}";
11 sha256 = "1xx7x1256sjncyzx656jl6jl546vn8zz0siymqalz6v9yf341p98";
12 };
13
14 nativeBuildInputs = [ bison flex perl ];
15
16 doCheck = true;
17 checkPhase = ''
18 runHook preCheck
19 (cd tests && ./run *.in)
20 runHook postCheck
21 '';
22
23 meta = with lib; {
24 description = "Parser & analyser for Lojban";
25 homepage = "https://github.com/lojban/jbofihe";
26 license = licenses.gpl2Only;
27 maintainers = with maintainers; [ chkno ];
28 };
29}