1{ stdenv, fetchurl, omake, ocaml, flex, bison }:
2
3stdenv.mkDerivation {
4 name = "teyjus-2.0b2";
5
6 src = fetchurl {
7 url = "https://teyjus.googlecode.com/files/teyjus-source-2.0-b2.tar.gz";
8 sha256 = "f589fb460d7095a6e674b7a6413772c41b98654c38602c3e8c477a976da99052";
9 };
10
11 patches = [ ./fix-lex-to-flex.patch ];
12
13 buildInputs = [ omake ocaml flex bison ];
14
15 buildPhase = "omake all";
16
17 checkPhase = "omake check";
18
19 installPhase = "mkdir -p $out/bin && cp tj* $out/bin";
20
21 meta = with stdenv.lib; {
22 description = "An efficient implementation of the Lambda Prolog language";
23 homepage = https://code.google.com/p/teyjus/;
24 license = stdenv.lib.licenses.gpl3;
25 maintainers = [ maintainers.bcdarwin ];
26 platforms = platforms.linux;
27 };
28}