diff options
author | Théophane Hufschmitt <theophane.hufschmitt@polytechnique.org> | 2016-07-13 14:56:05 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@polytechnique.org> | 2016-08-04 14:44:35 +0200 |
commit | ce90c9027482175d7bc1ff9b51088dc008a9c02c (patch) | |
tree | 562fdef0705caad3221929a346474e22fc53f8e9 /pkgs/development | |
parent | 7c2ecbe921a77ee210217ee122b446cb511c7a4c (diff) | |
download | nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar.gz nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar.bz2 nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar.lz nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar.xz nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.tar.zst nixlib-ce90c9027482175d7bc1ff9b51088dc008a9c02c.zip |
ocamlPackages.ocamlbuild : init at 0.9.2
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/ocaml/ocamlbuild/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/ocamlbuild/default.nix b/pkgs/development/tools/ocaml/ocamlbuild/default.nix new file mode 100644 index 000000000000..6feab7645f17 --- /dev/null +++ b/pkgs/development/tools/ocaml/ocamlbuild/default.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 + # ]; + # }; +} + |