ocamlPackages.ocamlbuild : init at 0.9.2

wip/yesman
Théophane Hufschmitt 8 years ago
parent 7c2ecbe921
commit ce90c90274
  1. 42
      pkgs/development/tools/ocaml/ocamlbuild/default.nix
  2. 6
      pkgs/top-level/all-packages.nix

@ -0,0 +1,42 @@
{stdenv, fetchFromGitHub, ocaml, findlib, buildOcaml, type_conv, camlp4,
ocamlmod, ocamlify, ounit, expect}:
let
version = "0.9.2";
in
stdenv.mkDerivation {
name = "ocamlbuild";
inherit version;
src = fetchFromGitHub {
owner = "ocaml";
repo = "ocamlbuild";
rev = version;
sha256 = "0q4bvik08v444g1pill9zgwal48xs50jf424lbryfvqghhw5xjjc";
};
createFindlibDestdir = true;
buildInputs = [ ocaml findlib ];
configurePhase = ''
make -f configure.make Makefile.config \
"OCAMLBUILD_PREFIX=$out" \
"OCAMLBUILD_BINDIR=$out/bin" \
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
'';
# configurePhase = "ocaml setup.ml -configure --prefix $out";
# buildPhase = "ocaml setup.ml -build";
# installPhase = "ocaml setup.ml -install";
# meta = with stdenv.lib; {
# homepage = http://oasis.forge.ocamlcore.org/;
# description = "Configure, build and install system for OCaml projects";
# license = licenses.lgpl21;
# platforms = ocaml.meta.platforms or [];
# maintainers = with maintainers; [
# vbgl z77z
# ];
# };
}

@ -5228,6 +5228,12 @@ in
core = callPackage ../development/ocaml-modules/core { };
ocamlbuild =
if lib.versionOlder "4.03" ocaml_version then
callPackage ../development/tools/ocaml/ocamlbuild { }
else
null;
ocaml_cryptgps = callPackage ../development/ocaml-modules/cryptgps { };
ocaml_data_notation = callPackage ../development/ocaml-modules/odn { };

Loading…
Cancel
Save