git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ocamlify: fix build with OCaml 4.06
commitd0072be8cdc6e92c1943928eedf2271b71aa716f authorVincent Laporte <Vincent.Laporte@gmail.com> dateMon 2 Apr 2018, 05:46 (9 years ago) parent2dc8520
1 file changed+10−3
pkgs/development/tools/ocaml/ocamlify/default.nix+10−3
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