2004-05-12 17:06:23 +02:00
|
|
|
/**
|
2005-09-18 01:58:51 +02:00
|
|
|
* This Nix expression requires the user to download the jdk
|
2006-06-06 21:43:31 +02:00
|
|
|
* distribution to /tmp. Please obtain jdk-1_5_0_07-linux-i586.bin
|
2004-05-12 17:06:23 +02:00
|
|
|
* from java.sun.com by hand and place it in /tmp. Blame Sun, not me.
|
|
|
|
*
|
|
|
|
* Note that this is not necessary if someone has already pushed a
|
|
|
|
* binary.
|
|
|
|
*
|
|
|
|
* @author Martin Bravenboer <martin@cs.uu.nl>
|
|
|
|
*/
|
2005-10-08 00:27:42 +02:00
|
|
|
{ swingSupport ? true
|
2005-10-11 15:31:33 +02:00
|
|
|
, stdenv, fetchurl, unzip, libX11 ? null, libXext ? null
|
2005-10-08 00:27:42 +02:00
|
|
|
}:
|
2004-05-12 17:06:23 +02:00
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
2005-10-08 00:27:42 +02:00
|
|
|
assert swingSupport -> libX11 != null && libXext != null;
|
|
|
|
|
2005-10-08 15:31:39 +02:00
|
|
|
(stdenv.mkDerivation {
|
2005-06-20 23:07:01 +02:00
|
|
|
name = "jdk-1.5.0";
|
2005-10-07 16:49:37 +02:00
|
|
|
builder = ./builder.sh;
|
2006-06-06 21:43:31 +02:00
|
|
|
filename = "jdk-1_5_0_07";
|
|
|
|
dirname = "jdk1.5.0_07";
|
|
|
|
pathname = "/tmp/jdk-1_5_0_07-linux-i586.bin";
|
|
|
|
md5 = "1325082c36b4adcb71bc5449ae4c68cf";
|
2005-10-11 15:31:33 +02:00
|
|
|
buildInputs = [unzip];
|
2005-10-08 00:27:42 +02:00
|
|
|
libraries =
|
|
|
|
(if swingSupport then [libX11 libXext] else []);
|
2005-10-08 15:31:39 +02:00
|
|
|
} // {inherit swingSupport;})
|