about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/teyjus/default.nix
blob: 41cc9b38606787324f86cb71b1cb600b999ea652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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;
  };
}