2022-01-07 19:09:33 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, omake, ocaml, flex, bison }:
|
2015-02-21 10:41:37 +03:00
|
|
|
|
2022-01-07 19:09:33 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-14 00:52:01 +03:00
|
|
|
pname = "teyjus";
|
2022-01-07 19:09:33 +03:00
|
|
|
version = "2.1";
|
2015-02-21 10:41:37 +03:00
|
|
|
|
2022-01-07 19:09:33 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "teyjus";
|
|
|
|
repo = "teyjus";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-nz7jZ+GdF6mZQPzBrVD9K/RtoeuVRuhfs7vej4zDkhg=";
|
2015-02-21 10:41:37 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-lex-to-flex.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ omake ocaml flex bison ];
|
|
|
|
|
2016-02-26 20:38:15 +03:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-25 05:20:27 +03:00
|
|
|
|
2015-02-21 10:41:37 +03:00
|
|
|
buildPhase = "omake all";
|
|
|
|
|
|
|
|
checkPhase = "omake check";
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && cp tj* $out/bin";
|
|
|
|
|
2021-01-22 14:25:31 +03:00
|
|
|
meta = with lib; {
|
2015-02-21 10:41:37 +03:00
|
|
|
description = "An efficient implementation of the Lambda Prolog language";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/teyjus/teyjus";
|
2021-01-22 14:25:31 +03:00
|
|
|
license = lib.licenses.gpl3;
|
2015-02-21 10:41:37 +03:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|