mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
* In the JDK packages, don't return false if the platform is
unsupported. This gives a type error ("value is a boolean while an attribute set was expected"). svn path=/nixpkgs/trunk/; revision=8576
This commit is contained in:
parent
e317c7de41
commit
0005a37b8d
@ -6,4 +6,4 @@ if stdenv.system == "i686-linux"
|
||||
inherit stdenv fetchurl;
|
||||
}
|
||||
else
|
||||
false
|
||||
abort "the Java 2 SDK is not supported on this platform"
|
||||
|
@ -4,7 +4,7 @@ if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" th
|
||||
(import ./jdk6-linux.nix) args
|
||||
|
||||
else if args.stdenv.system == "powerpc-linux" then
|
||||
(import ./jdk5-ibm-powerpc-linux.nix) args
|
||||
(import ./jdk5-ibm-powerpc-linux.nix) args
|
||||
|
||||
else
|
||||
false
|
||||
abort "the JDK is not supported on this platform"
|
||||
|
@ -753,10 +753,11 @@ rec {
|
||||
inherit fetchurl stdenv ghc;
|
||||
};
|
||||
|
||||
j2sdk14x = import ../development/compilers/jdk/default-1.4.nix {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
j2sdk14x =
|
||||
assert system == "i686-linux";
|
||||
import ../development/compilers/jdk/default-1.4.nix {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
jdk = jdkdistro true false;
|
||||
jre = jdkdistro false false;
|
||||
@ -764,10 +765,11 @@ rec {
|
||||
jdkPlugin = jdkdistro true true;
|
||||
jrePlugin = jdkdistro false true;
|
||||
|
||||
jdkdistro = installjdk : pluginSupport:
|
||||
jdkdistro = installjdk: pluginSupport:
|
||||
if stdenv.isDarwin then
|
||||
"/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home"
|
||||
else
|
||||
assert system == "i686-linux" || system == "x86_64-linux" || system == "powerpc-linux";
|
||||
import ../development/compilers/jdk {
|
||||
inherit fetchurl stdenv unzip installjdk xlibs pluginSupport;
|
||||
libstdcpp5 = gcc33.gcc;
|
||||
|
Loading…
Reference in New Issue
Block a user