summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lua-ml
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-01-12 20:48:25 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2021-01-21 11:26:26 +0100
commit46cd648a970365a424bc0936102aba432a3e4915 (patch)
treee474dafe9ca80226c744a2a1d91839b14872e9c3 /pkgs/development/ocaml-modules/lua-ml
parent9212e03c1334f2d5edfed7851e8cbc291ff10b26 (diff)
downloadnixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar.gz
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar.bz2
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar.lz
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar.xz
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.tar.zst
nixpkgs-46cd648a970365a424bc0936102aba432a3e4915.zip
ocamlPackages.lua-ml: install using opaline instead of inheriting from dune
Diffstat (limited to 'pkgs/development/ocaml-modules/lua-ml')
-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 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";