diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-10-14 15:21:45 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-10-14 15:21:45 +0000 |
commit | f581d2a71991e175381d78394029dcdb9201c17b (patch) | |
tree | 9336e33fe561b664699e205c491fd71418ab0402 /pkgs | |
parent | c5b198300d88a80810b59ee6216976db5fce0e19 (diff) |
* Make all ocaml versions available in the proper way.
svn path=/nixpkgs/trunk/; revision=17805
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/ocaml/default.nix | 9 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 20 |
2 files changed, 16 insertions, 13 deletions
diff --git a/pkgs/development/compilers/ocaml/default.nix b/pkgs/development/compilers/ocaml/default.nix deleted file mode 100644 index 57cdfceaa152e..0000000000000 --- a/pkgs/development/compilers/ocaml/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -args: - -builtins.listToAttrs [ - { name = "3.08.0"; value = import ./3.08.0.nix args; } - { name = "3.09.1"; value = import ./3.09.1.nix args; } - { name = "3.10.0"; value = import ./3.10.0.nix args; } - { name = "3.11.1"; value = import ./3.11.1.nix args; } - { name = "default"; value = import ./3.11.1.nix args; } -] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7d92162576c2..33803dc71f2cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2115,9 +2115,21 @@ let inherit fetchurl stdenv; }; - ocaml = getVersion "ocaml" ocaml_alts; + ocaml = ocaml_3_11_1; - ocaml_alts = import ../development/compilers/ocaml { + ocaml_3_08_0 = import ../development/compilers/ocaml/3.08.0.nix { + inherit fetchurl stdenv x11 ncurses; + }; + + ocaml_3_09_1 = import ../development/compilers/ocaml/3.09.1.nix { + inherit fetchurl stdenv x11 ncurses; + }; + + ocaml_3_10_0 = import ../development/compilers/ocaml/3.10.0.nix { + inherit fetchurl stdenv x11 ncurses; + }; + + ocaml_3_11_1 = import ../development/compilers/ocaml/3.11.1.nix { inherit fetchurl stdenv x11 ncurses; }; @@ -2145,7 +2157,7 @@ let qcmm = import ../development/compilers/qcmm { lua = lua4; - ocaml = builtins.getAttr "3.08.0" ocaml_alts; + ocaml = ocaml_3_08_0; inherit fetchurl stdenv mk noweb groff; }; @@ -3204,7 +3216,7 @@ let facile = import ../development/libraries/facile { inherit fetchurl stdenv; # Actually, we don't need this version but we need native-code compilation - ocaml = builtins.getAttr "3.10.0" ocaml_alts; + ocaml = ocaml_3_10_0; }; faac = import ../development/libraries/faac { |