lol

ocamlPackages.lua-ml: install using opaline instead of inheriting from dune

authored by

sternenseemann and committed by
Vincent Laporte
46cd648a 9212e03c

+5 -2
+5 -2
pkgs/development/ocaml-modules/lua-ml/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }: 1 + { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline }: 2 2 3 3 if !lib.versionAtLeast ocaml.version "4.07" 4 4 then throw "lua-ml is not available for OCaml ${ocaml.version}" ··· 16 16 sha256 = "04lv98nxmzanvyn4c0k6k0ax29f5xfdl8qzpf5hwadslq213a044"; 17 17 }; 18 18 19 + nativeBuildInputs = [ opaline ]; 19 20 buildInputs = [ ocaml findlib ocamlbuild ]; 20 21 21 22 buildFlags = [ "lib" ]; 22 23 23 - inherit (dune) installPhase; 24 + installPhase = '' 25 + opaline -prefix $out -libdir $OCAMLFIND_DESTDIR 26 + ''; 24 27 25 28 meta = { 26 29 description = "An embeddable Lua 2.5 interpreter implemented in OCaml";