2008-04-11 15:13:51 -07:00
|
|
|
args:
|
2004-01-24 15:46:00 -08:00
|
|
|
|
2008-04-11 15:13:51 -07:00
|
|
|
if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" then
|
2010-05-27 04:04:45 -07:00
|
|
|
(import ./jdk6-linux.nix) ( removeAttrs args ["cabextract"] )
|
2008-04-11 15:13:51 -07:00
|
|
|
else if args.stdenv.system == "powerpc-linux" then
|
2010-05-27 04:04:45 -07: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 15:13:51 -07:00
|
|
|
else
|
|
|
|
abort "the JDK is not supported on this platform"
|
2007-03-05 09:13:53 -08:00
|
|
|
|