ocamlPackages.lua-ml: init at 0.9
This commit is contained in:
parent
2b298a3ef1
commit
ed5c0443c1
32
pkgs/development/ocaml-modules/lua-ml/default.nix
Normal file
32
pkgs/development/ocaml-modules/lua-ml/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.07"
|
||||||
|
then throw "lua-ml is not available for OCaml ${ocaml.version}"
|
||||||
|
else
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "lua-ml";
|
||||||
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
|
version = "0.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lindig";
|
||||||
|
repo = pname;
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "09lj6qykg15fdf65in7xdry0jcifcr8vqbvz85v12gwfckmmxjir";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
|
|
||||||
|
buildFlags = [ "lib" ];
|
||||||
|
|
||||||
|
inherit (dune) installPhase;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "An embeddable Lua 2.5 interpreter implemented in OCaml";
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
|
license = stdenv.lib.licenses.bsd2;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||||
|
};
|
||||||
|
}
|
@ -444,6 +444,8 @@ let
|
|||||||
|
|
||||||
lru = callPackage ../development/ocaml-modules/lru { };
|
lru = callPackage ../development/ocaml-modules/lru { };
|
||||||
|
|
||||||
|
lua-ml = callPackage ../development/ocaml-modules/lua-ml { };
|
||||||
|
|
||||||
lwt2 = callPackage ../development/ocaml-modules/lwt/legacy.nix { };
|
lwt2 = callPackage ../development/ocaml-modules/lwt/legacy.nix { };
|
||||||
|
|
||||||
lwt4 = callPackage ../development/ocaml-modules/lwt/4.x.nix { };
|
lwt4 = callPackage ../development/ocaml-modules/lwt/4.x.nix { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user