Merge pull request #38373 from vbgl/ocamlify
ocamlPackages.ocamlify: fix build with OCaml 4.06
commitb897bf4f3cd3bb4a1077c096043e20b4fceaef0c
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateSun 8 Apr 2018, 14:27 (9 years ago)
parent2c36472d0072be
pkgs/development/tools/ocaml/ocamlify/default.nix+10−3
@@ -10,9 +10,16 @@ stdenv.mkDerivation {
1010
1111 buildInputs = [ ocaml findlib ocamlbuild ];
1212
13− configurePhase = "ocaml setup.ml -configure --prefix $out";
14− buildPhase = "ocaml setup.ml -build";
15− installPhase = "ocaml setup.ml -install";
13+ configurePhase = ''
14+ substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
15+ '';
16+
17+ buildPhase = "ocamlbuild src/ocamlify.native";
18+
19+ installPhase = ''
20+ mkdir -p $out/bin
21+ mv _build/src/ocamlify.native $out/bin/ocamlify
22+ '';
1623
1724 dontStrip = true;
1825