nixpkgs/pkgs/development/compilers/teyjus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1023 B
Nix
Raw Normal View History

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
hardeningDisable = [ "format" ];
2016-02-25 02:20:27 +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";
meta = with lib; {
2015-02-21 07:41:37 +00:00
description = "An efficient implementation of the Lambda Prolog language";
homepage = "https://github.com/teyjus/teyjus";
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
};
}