Add the possibility to build a patoline environment with

nix-env -i env-patoline.

This is the only reasonnable way to install patoline which require
ocaml compiler with a large set of libraries installed.
This commit is contained in:
Christophe Raffalli 2013-06-07 21:48:37 +02:00
parent 270d929089
commit ac347e5cde

View File

@ -2786,6 +2786,22 @@ let
ocamlnat = let callPackage = newScope pkgs.ocamlPackages_3_12_1; in callPackage ../development/ocaml-modules/ocamlnat { };
# patoline requires a rather large ocaml compilation environment.
# this is why it is build as an environment and not just a normal package.
# remark : the emacs mode is also installed, but you have to adjust your load-path.
mkPatolineEnv = pack: pkgs.myEnvFun {
name = "patoline";
buildInputs = [ stdenv ncurses mesa freeglut libzip
pack.ocaml pack.findlib pack.camomile
pack.dypgen pack.ocaml_sqlite3 pack.camlzip
pack.lablgtk pack.camlimages pack.ocaml_cairo
pack.lablgl pack.ocamlnet pack.cryptokit
pack.ocaml_pcre pack.patoline
];
};
patoline = mkPatolineEnv ocamlPackages_4_00_1;
opencxx = callPackage ../development/compilers/opencxx {
gcc = gcc33;
};