depot/third_party/nixpkgs/pkgs/development/compilers/teyjus/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

35 lines
820 B
Nix

{ lib, 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 lib; {
description = "An efficient implementation of the Lambda Prolog language";
homepage = "https://github.com/teyjus/teyjus";
license = lib.licenses.gpl3;
maintainers = [ maintainers.bcdarwin ];
platforms = platforms.linux;
};
}