2011-08-01 03:08:15 +02:00
|
|
|
{stdenv, fetchurl, unzip, procps, coreutils}:
|
2011-07-28 20:53:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-08-01 03:07:58 +02:00
|
|
|
name = "openjdk-7b127";
|
2011-07-28 20:53:12 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-01 03:07:58 +02:00
|
|
|
url = http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip;
|
|
|
|
sha256 = "1qhwlz9y5qmwmja4qnxg6sn3pgsg1i11fb9j41w8l26acyhk34rs";
|
2011-07-28 20:53:12 +02:00
|
|
|
};
|
|
|
|
|
2011-08-01 03:08:07 +02:00
|
|
|
buildInputs = [ unzip procps ];
|
2011-08-01 03:08:15 +02:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
|
|
|
|
--replace /bin/echo ${coreutils}/bin/echo
|
|
|
|
substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
|
|
|
|
--replace /usr/nix/store /nix/store
|
|
|
|
'';
|
2011-08-01 03:08:23 +02:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make sanity
|
|
|
|
'';
|
2011-07-28 20:53:12 +02:00
|
|
|
}
|