From ac347e5cdeb234f4a70b2652cfbf01ea0bc9e7e7 Mon Sep 17 00:00:00 2001 From: Christophe Raffalli Date: Fri, 7 Jun 2013 21:48:37 +0200 Subject: [PATCH] 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. --- pkgs/top-level/all-packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a066fc19ffb..067f074bdc0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };