summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-04-08 14:27:14 +0100
committerGitHub <noreply@github.com>2018-04-08 14:27:14 +0100
commitb897bf4f3cd3bb4a1077c096043e20b4fceaef0c (patch)
treefb2be72d245ab5cdd39e355deffb8d0162f898a5 /pkgs/development/tools/ocaml
parent2c364726c18189ba9e8d6da30341ce70090ad816 (diff)
parentd0072be8cdc6e92c1943928eedf2271b71aa716f (diff)
downloadnixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar.gz
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar.bz2
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar.lz
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar.xz
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.tar.zst
nixlib-b897bf4f3cd3bb4a1077c096043e20b4fceaef0c.zip
Merge pull request #38373 from vbgl/ocamlify
ocamlPackages.ocamlify: fix build with OCaml 4.06
Diffstat (limited to 'pkgs/development/tools/ocaml')
-rw-r--r--pkgs/development/tools/ocaml/ocamlify/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/tools/ocaml/ocamlify/default.nix b/pkgs/development/tools/ocaml/ocamlify/default.nix
index 2876464ab502..df480903d154 100644
--- a/pkgs/development/tools/ocaml/ocamlify/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlify/default.nix
@@ -10,9 +10,16 @@ stdenv.mkDerivation {
 
   buildInputs = [ ocaml findlib ocamlbuild ];
 
-  configurePhase = "ocaml setup.ml -configure --prefix $out";
-  buildPhase     = "ocaml setup.ml -build";
-  installPhase   = "ocaml setup.ml -install";
+  configurePhase = ''
+    substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
+  '';
+
+  buildPhase = "ocamlbuild src/ocamlify.native";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mv _build/src/ocamlify.native $out/bin/ocamlify
+  '';
 
   dontStrip = true;