2018-10-10 16:27:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5
|
2018-09-20 06:45:31 +01:00
|
|
|
, ppx_tools_versioned, ppx_deriving, re
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-elpi-${version}";
|
2018-10-15 14:41:45 +01:00
|
|
|
version = "1.1.0";
|
2018-09-20 06:45:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LPCIC";
|
|
|
|
repo = "elpi";
|
|
|
|
rev = "v${version}";
|
2018-10-15 14:41:45 +01:00
|
|
|
sha256 = "1fd4mqggdcnbhqwrg8r0ikb1j2lv0fc9hv9xfbyjzbzxbjggf5zc";
|
2018-09-20 06:45:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ppx_tools_versioned ];
|
|
|
|
|
2018-10-10 16:27:19 +01:00
|
|
|
propagatedBuildInputs = [ camlp5 ppx_deriving re ];
|
2018-09-20 06:45:31 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
preInstall = "make byte";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
make install-bin BIN=$out/bin
|
|
|
|
make install-bin BYTE=1 BIN=$out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Embeddable λProlog Interpreter";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|