diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-09-20 05:45:31 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-09-27 17:41:12 +0000 |
commit | c8f3e0f118a300a48e6c480239b4786bec425c24 (patch) | |
tree | 630b3fa827a2c8e8f9240e42e45e78bfb6e835f3 /pkgs/development/ocaml-modules | |
parent | 8185f07d46708a4fc45621e94b6c6262017a9ea7 (diff) | |
download | nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar.gz nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar.bz2 nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar.lz nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar.xz nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.tar.zst nixlib-c8f3e0f118a300a48e6c480239b4786bec425c24.zip |
ocamlPackages.elpi: init at 1.0.5
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/elpi/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/elpi/default.nix b/pkgs/development/ocaml-modules/elpi/default.nix new file mode 100644 index 000000000000..db188a720b88 --- /dev/null +++ b/pkgs/development/ocaml-modules/elpi/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, camlp5_strict +, ppx_tools_versioned, ppx_deriving, re +}: + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-elpi-${version}"; + version = "1.0.5"; + src = fetchFromGitHub { + owner = "LPCIC"; + repo = "elpi"; + rev = "v${version}"; + sha256 = "1n1m183l4ms949m2l24w0887m1rmvc9b3j8alnbw8ckn6wwnhpmk"; + }; + + buildInputs = [ ocaml findlib ppx_tools_versioned ]; + + propagatedBuildInputs = [ camlp5_strict 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; + }; +} |