depot/third_party/nixpkgs/pkgs/development/compilers/teyjus/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
829 B
Nix

{ stdenv, fetchurl, omake, ocaml, flex, bison }:
let
version = "2.1";
in
stdenv.mkDerivation {
pname = "teyjus";
inherit version;
src = fetchurl {
url = "https://github.com/teyjus/teyjus/archive/v${version}.tar.gz";
sha256 = "0393wpg8v1vvarqy2xh4fdmrwlrl6jaj960kql7cq79mb9p3m269";
};
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";
meta = with stdenv.lib; {
description = "An efficient implementation of the Lambda Prolog language";
homepage = "https://github.com/teyjus/teyjus";
license = stdenv.lib.licenses.gpl3;
maintainers = [ maintainers.bcdarwin ];
platforms = platforms.linux;
};
}