2011-08-01 02:10:16 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
2011-08-01 02:10:28 +01:00
|
|
|
, zip
|
2011-08-01 02:10:16 +01:00
|
|
|
, procps
|
|
|
|
, coreutils
|
|
|
|
, alsaLib
|
|
|
|
, ant
|
2011-08-01 02:11:09 +01:00
|
|
|
, freetype
|
2011-08-01 02:11:40 +01:00
|
|
|
, cups
|
2011-08-01 02:12:19 +01:00
|
|
|
, which
|
2011-08-01 02:12:28 +01:00
|
|
|
, jdk
|
2011-08-01 02:14:49 +01:00
|
|
|
, nettools
|
2011-08-01 02:10:16 +01:00
|
|
|
}:
|
2011-07-28 19:53:12 +01:00
|
|
|
|
2011-08-01 02:08:58 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-01 02:07:58 +01:00
|
|
|
name = "openjdk-7b127";
|
2011-07-28 19:53:12 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-01 02:07:58 +01: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 19:53:12 +01:00
|
|
|
};
|
|
|
|
|
2011-08-01 02:14:49 +01:00
|
|
|
buildInputs = [ unzip procps ant which zip nettools ];
|
2011-08-01 02:08:15 +01:00
|
|
|
|
2011-08-01 02:13:36 +01:00
|
|
|
postUnpack = ''
|
|
|
|
sed -i s@/usr/bin/test@${coreutils}/bin/test@ \
|
|
|
|
openjdk/hotspot/make/linux/makefiles/sa.make
|
2011-08-01 02:13:44 +01:00
|
|
|
|
|
|
|
sed -i s@/bin/ls@${coreutils}/bin/ls@ \
|
|
|
|
openjdk/hotspot/make/linux/makefiles/sa.make
|
2011-08-01 02:15:37 +01:00
|
|
|
|
|
|
|
sed -i "s@/bin/echo -e@${coreutils}/bin/echo -e@" \
|
|
|
|
openjdk/jdk/make/common/shared/Defs-utils.gmk
|
2011-08-01 02:13:36 +01:00
|
|
|
'';
|
|
|
|
|
2011-08-01 02:15:29 +01:00
|
|
|
makeFlags = [
|
|
|
|
"SORT=${coreutils}/bin/sort"
|
|
|
|
"ALSA_INCLUDE=${alsaLib}/include/alsa/version.h"
|
|
|
|
"FREETYPE_HEADERS_PATH=${freetype}/include"
|
|
|
|
"FREETYPE_LIB_PATH=${freetype}/lib"
|
|
|
|
"MILESTONE=release"
|
|
|
|
"BUILD_NUMBER=127"
|
|
|
|
"CUPS_HEADERS_PATH=${cups}/include"
|
|
|
|
"USRBIN_PATH="
|
|
|
|
"COMPILER_PATH="
|
|
|
|
"DEVTOOLS_PATH="
|
|
|
|
"UNIXCOMMAND_PATH="
|
|
|
|
"BOOTDIR=${jdk}"
|
|
|
|
"ALLOW_DOWNLOADS=true"
|
|
|
|
];
|
2011-08-01 02:08:58 +01:00
|
|
|
|
2011-08-01 02:08:23 +01:00
|
|
|
configurePhase = ''
|
2011-08-01 02:15:29 +01:00
|
|
|
make $makeFlags sanity
|
2011-08-01 02:08:23 +01:00
|
|
|
'';
|
2011-07-28 19:53:12 +01:00
|
|
|
}
|
2011-08-01 02:08:32 +01:00
|
|
|
|