2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, omake, ocaml, flex, bison }:
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2018-03-15 17:37:55 +00:00
|
|
|
let
|
|
|
|
version = "2.1";
|
|
|
|
in
|
|
|
|
|
2015-02-21 07:41:37 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "teyjus";
|
|
|
|
inherit version;
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2016-12-18 09:25:24 +00:00
|
|
|
src = fetchurl {
|
2018-03-15 17:37:55 +00:00
|
|
|
url = "https://github.com/teyjus/teyjus/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0393wpg8v1vvarqy2xh4fdmrwlrl6jaj960kql7cq79mb9p3m269";
|
2015-02-21 07:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-lex-to-flex.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ omake ocaml flex bison ];
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-25 02:20:27 +00:00
|
|
|
|
2015-02-21 07:41:37 +00:00
|
|
|
buildPhase = "omake all";
|
|
|
|
|
|
|
|
checkPhase = "omake check";
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && cp tj* $out/bin";
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2015-02-21 07:41:37 +00:00
|
|
|
description = "An efficient implementation of the Lambda Prolog language";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/teyjus/teyjus";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2015-02-21 07:41:37 +00:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|