mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
37 lines
889 B
Nix
37 lines
889 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5
|
|
, ppx_tools_versioned, ppx_deriving, re
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-elpi-${version}";
|
|
version = "1.1.0";
|
|
src = fetchFromGitHub {
|
|
owner = "LPCIC";
|
|
repo = "elpi";
|
|
rev = "v${version}";
|
|
sha256 = "1fd4mqggdcnbhqwrg8r0ikb1j2lv0fc9hv9xfbyjzbzxbjggf5zc";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ppx_tools_versioned ];
|
|
|
|
propagatedBuildInputs = [ camlp5 ppx_deriving re ];
|
|
|
|
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;
|
|
};
|
|
}
|