From 2eace0dfe665799d04ef4d8675d119c2843e15a8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 29 Nov 2012 11:31:38 +0100 Subject: [PATCH] Make "nix-env -i openjdk" do the right thing --- pkgs/top-level/all-packages.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 098ab6907600..dabb187a62d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2416,20 +2416,19 @@ let path64 = callPackage ../development/compilers/path64 { }; - openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {}; - - openjdkStage1 = callPackage ../development/compilers/openjdk { - jdk = pkgs.openjdkBootstrap; - ant = pkgs.ant.override { jdk = pkgs.openjdkBootstrap; }; - }; - openjdk = if stdenv.isDarwin then callPackage ../development/compilers/openjdk-darwin { } else - callPackage ../development/compilers/openjdk { - jdk = pkgs.openjdkStage1; - ant = pkgs.ant.override { jdk = pkgs.openjdkStage1; }; + let + openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {}; + openjdkStage1 = callPackage ../development/compilers/openjdk { + jdk = openjdkBootstrap; + ant = pkgs.ant.override { jdk = openjdkBootstrap; }; + }; + in callPackage ../development/compilers/openjdk { + jdk = openjdkStage1; + ant = pkgs.ant.override { jdk = openjdkStage1; }; }; openjre = pkgs.openjdk.override {