summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lua-ml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-12-08 07:56:32 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-12-15 08:23:32 +0100
commited5c0443c1f759551b2c71a98daa8c2b7e242f73 (patch)
tree549ccca720afe9a21f560dea3900af16aec67758 /pkgs/development/ocaml-modules/lua-ml
parent2b298a3ef1633d678e2afad39aa11294b78febf5 (diff)
downloadnixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar.gz
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar.bz2
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar.lz
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar.xz
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.tar.zst
nixpkgs-ed5c0443c1f759551b2c71a98daa8c2b7e242f73.zip
ocamlPackages.lua-ml: init at 0.9
Diffstat (limited to 'pkgs/development/ocaml-modules/lua-ml')
-rw-r--r--pkgs/development/ocaml-modules/lua-ml/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lua-ml/default.nix b/pkgs/development/ocaml-modules/lua-ml/default.nix
new file mode 100644
index 00000000000..a0db995827a
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lua-ml/default.nix
@@ -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 ];
+  };
+}