From 46cd648a970365a424bc0936102aba432a3e4915 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:48:25 +0100 Subject: [PATCH] ocamlPackages.lua-ml: install using opaline instead of inheriting from dune --- pkgs/development/ocaml-modules/lua-ml/default.nix | 7 +++++-- 1 file 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 ae16b285654..8a4f58ccbbd 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";