2008-01-23 13:25:08 +01:00
|
|
|
/**
|
|
|
|
* This Nix expression requires the user to download the j2sdk
|
|
|
|
* distribution to /tmp. Please obtain jdk-1_5_0_14-linux-i586.bin
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2008-01-24 11:14:33 +01:00
|
|
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
2008-01-23 13:25:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "jdk-1.5.0_14";
|
|
|
|
filename = "jdk-1_5_0_14";
|
|
|
|
dirname = "jdk1.5.0_14";
|
|
|
|
builder = ./builder.sh;
|
2008-01-24 11:14:33 +01:00
|
|
|
pathname = if stdenv.system == "x86_64-linux" then "/tmp/jdk-1_5_0_14-linux-amd64.bin" else "/tmp/jdk-1_5_0_14-linux-i586.bin";
|
|
|
|
md5 = if stdenv.system == "x86_64-linux" then "9dc74d939dd42988280f2c22ab9521bf" else "32df8f2be09c3a0f39da1b3869164b55";
|
|
|
|
|
2008-01-23 13:25:08 +01:00
|
|
|
stdenv = stdenv;
|
|
|
|
inherit unzip;
|
|
|
|
}
|