3
0
Fork 0
forked from mirrors/nixpkgs

Nix expression for ocaml compiler.

- The package has a non-standard build interface;
  fixed with hooks for genericBuild
- The graph library requires x11 and the configure
  script looks in absolute directory paths to find
  X11. Fixed by using patched configure script from
  which the absolute paths have been removed. As
  a consequence the graph library is not build until
  we have X11 support in Nix.


svn path=/nixpkgs/trunk/; revision=1188
This commit is contained in:
Eelco Visser 2004-07-28 10:08:31 +00:00
parent 6bb1fefcdc
commit 4e0ab72b67
5 changed files with 1500 additions and 4 deletions

View file

@ -1,4 +1,13 @@
. $stdenv/setup
configureFlags=""
configureFlags="-prefix $out $configureFlags"
genericBuild
# make world
# make bootstrap
# make opt
# make opt.opt
# make install
#cd emacs/
#make EMACSDIR=$out/share/ocaml/emacs

1482
pkgs/development/compilers/ocaml/configure vendored Executable file

File diff suppressed because it is too large Load diff

View file

@ -6,5 +6,10 @@ stdenv.mkDerivation {
src = fetchurl {
url = http://caml.inria.fr/distrib/ocaml-3.08/ocaml-3.08.0.tar.gz;
md5 = "c6ef478362295c150101cdd2efcd38e0";
}
};
configureScript = ./configure;
dontAddPrefix = "True";
configureFlags = "-no-tk";
makeFlags = ["world" "bootstrap" "opt"];
checkTarget = ["opt.opt"];
}

View file

@ -248,7 +248,7 @@ rec {
inherit fetchurl stdenv;
};
strategoxt = (import ../development/compilers/ocaml) {
ocaml = (import ../development/compilers/ocaml) {
inherit fetchurl stdenv ;
};

View file

@ -57,7 +57,7 @@ let {
nxml
uml
nix
# ocaml
ocaml
# hevea
;};