summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/ocaml-modules/lua-ml/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/lua-ml/default.nix b/pkgs/development/ocaml-modules/lua-ml/default.nix
index ae16b2856546..8a4f58ccbbd7 100644
--- a/pkgs/development/ocaml-modules/lua-ml/default.nix
+++ b/pkgs/development/ocaml-modules/lua-ml/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }:
+{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline }:
if !lib.versionAtLeast ocaml.version "4.07"
then throw "lua-ml is not available for OCaml ${ocaml.version}"
@@ -16,11 +16,14 @@ stdenv.mkDerivation rec {
sha256 = "04lv98nxmzanvyn4c0k6k0ax29f5xfdl8qzpf5hwadslq213a044";
};
+ nativeBuildInputs = [ opaline ];
buildInputs = [ ocaml findlib ocamlbuild ];
buildFlags = [ "lib" ];
- inherit (dune) installPhase;
+ installPhase = ''
+ opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
+ '';
meta = {
description = "An embeddable Lua 2.5 interpreter implemented in OCaml";