ocamlPackages.ocamlbuild : init at 0.9.2
This commit is contained in:
parent
7c2ecbe921
commit
ce90c90274
42
pkgs/development/tools/ocaml/ocamlbuild/default.nix
Normal file
42
pkgs/development/tools/ocaml/ocamlbuild/default.nix
Normal file
@ -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…
Reference in New Issue
Block a user