2008-04-11 23:13:51 +01:00
|
|
|
args:
|
2004-01-24 23:46:00 +00:00
|
|
|
|
2008-04-11 23:13:51 +01:00
|
|
|
if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" then
|
2010-05-27 12:04:45 +01:00
|
|
|
(import ./jdk6-linux.nix) ( removeAttrs args ["cabextract"] )
|
2008-04-11 23:13:51 +01:00
|
|
|
else if args.stdenv.system == "powerpc-linux" then
|
2010-05-27 12:04:45 +01:00
|
|
|
(import ./jdk5-ibm-powerpc-linux.nix) (removeAttrs args ["pluginSupport" "xlibs" "installjdk" "cabextract"])
|
|
|
|
else if args.stdenv.system == "i686-cygwin" then
|
|
|
|
(import ./jdk6-cygwin.nix) (removeAttrs args ["pluginSupport" "xlibs" "installjdk" "xlibs"])
|
2008-04-11 23:13:51 +01:00
|
|
|
else
|
|
|
|
abort "the JDK is not supported on this platform"
|
2007-03-05 17:13:53 +00:00
|
|
|
|