mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ocamlPackages.elpi: init at 1.0.5
This commit is contained in:
parent
8185f07d46
commit
c8f3e0f118
2 changed files with 38 additions and 0 deletions
36
pkgs/development/ocaml-modules/elpi/default.nix
Normal file
36
pkgs/development/ocaml-modules/elpi/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -240,6 +240,8 @@ let
|
|||
|
||||
eliom = callPackage ../development/ocaml-modules/eliom { };
|
||||
|
||||
elpi = callPackage ../development/ocaml-modules/elpi { };
|
||||
|
||||
enumerate = callPackage ../development/ocaml-modules/enumerate { };
|
||||
|
||||
erm_xml = callPackage ../development/ocaml-modules/erm_xml { };
|
||||
|
|
Loading…
Reference in a new issue