2022-01-13 20:06:32 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, omake, ocaml, flex, bison }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "teyjus";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "teyjus";
|
|
|
|
repo = "teyjus";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-nz7jZ+GdF6mZQPzBrVD9K/RtoeuVRuhfs7vej4zDkhg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-lex-to-flex.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ omake ocaml flex bison ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
buildPhase = "omake all";
|
|
|
|
|
|
|
|
checkPhase = "omake check";
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && cp tj* $out/bin";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An efficient implementation of the Lambda Prolog language";
|
|
|
|
homepage = "https://github.com/teyjus/teyjus";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|