2022-01-07 16:09:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, omake, ocaml, flex, bison }:
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2022-01-07 16:09:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "teyjus";
|
2023-01-09 19:35:45 +00:00
|
|
|
version = "unstable-2019-07-26";
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2022-01-07 16:09:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "teyjus";
|
|
|
|
repo = "teyjus";
|
2023-01-09 19:35:45 +00:00
|
|
|
rev = "e63f40aa9f1d0ea5e7bac41aae5e479c3616545c";
|
|
|
|
sha256 = "sha256-gaAWKd5/DZrIPaaQzx9l0KtCMW9LPw17vvNPsnopZA0=";
|
2015-02-21 07:41:37 +00:00
|
|
|
};
|
|
|
|
|
2023-01-09 19:35:45 +00:00
|
|
|
patches = [
|
|
|
|
./fix-lex-to-flex.patch
|
|
|
|
];
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2023-01-09 19:35:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/TST/d" source/OMakefile
|
|
|
|
rm -rf source/front/caml
|
|
|
|
'';
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ omake ocaml flex bison ];
|
2015-02-21 07:41:37 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-25 02:20:27 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${ocaml}/include";
|
2023-01-09 19:35:45 +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 01:11:51 +00: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 ];
|
2023-01-09 19:35:45 +00:00
|
|
|
platforms = platforms.unix;
|
2015-02-21 07:41:37 +00:00
|
|
|
};
|
|
|
|
}
|