2011-08-01 05:10:16 +04:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
2011-08-01 05:10:28 +04:00
|
|
|
, zip
|
2011-08-01 05:10:16 +04:00
|
|
|
, procps
|
|
|
|
, coreutils
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, alsaLib
|
|
|
|
, ant
|
2011-08-01 05:11:09 +04:00
|
|
|
, freetype
|
2011-08-01 05:11:40 +04:00
|
|
|
, cups
|
2011-08-01 05:12:04 +04:00
|
|
|
, gawk
|
2011-08-01 05:12:19 +04:00
|
|
|
, which
|
2011-08-01 05:12:28 +04:00
|
|
|
, jdk
|
2011-08-01 05:12:44 +04:00
|
|
|
, findutils
|
2011-08-01 05:10:16 +04:00
|
|
|
}:
|
2011-07-28 22:53:12 +04:00
|
|
|
|
2011-08-01 05:08:58 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-01 05:07:58 +04:00
|
|
|
name = "openjdk-7b127";
|
2011-07-28 22:53:12 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-01 05:07:58 +04: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 22:53:12 +04:00
|
|
|
};
|
|
|
|
|
2011-08-01 05:13:19 +04:00
|
|
|
buildInputs = [ unzip procps ant which zip ];
|
2011-08-01 05:08:15 +04:00
|
|
|
|
2011-08-01 05:13:36 +04:00
|
|
|
postUnpack = ''
|
|
|
|
sed -i s@/usr/bin/test@${coreutils}/bin/test@ \
|
|
|
|
openjdk/hotspot/make/linux/makefiles/sa.make
|
2011-08-01 05:13:44 +04:00
|
|
|
|
|
|
|
sed -i s@/bin/ls@${coreutils}/bin/ls@ \
|
|
|
|
openjdk/hotspot/make/linux/makefiles/sa.make
|
2011-08-01 05:13:36 +04:00
|
|
|
'';
|
|
|
|
|
2011-08-01 05:08:58 +04:00
|
|
|
makeFlags = ''
|
|
|
|
MKDIR=${coreutils}/bin/mkdir \
|
2011-08-01 05:12:54 +04:00
|
|
|
TOUCH=${coreutils}/bin/touch \
|
2011-08-01 05:13:02 +04:00
|
|
|
CP=${coreutils}/bin/cp \
|
2011-08-01 05:13:11 +04:00
|
|
|
CHMOD=${coreutils}/bin/chmod \
|
2011-08-01 05:12:36 +04:00
|
|
|
ECHO=${coreutils}/bin/echo \
|
2011-08-01 05:11:24 +04:00
|
|
|
CAT=${coreutils}/bin/cat \
|
2011-08-01 05:09:06 +04:00
|
|
|
GREP=${gnugrep}/bin/grep \
|
2011-08-01 05:09:38 +04:00
|
|
|
EGREP=${gnugrep}/bin/egrep \
|
2011-08-01 05:09:14 +04:00
|
|
|
DATE=${coreutils}/bin/date \
|
2011-08-01 05:09:22 +04:00
|
|
|
PWD=${coreutils}/bin/pwd \
|
2011-08-01 05:09:30 +04:00
|
|
|
TR=${coreutils}/bin/tr \
|
2011-08-01 05:09:45 +04:00
|
|
|
SED=${gnused}/bin/sed \
|
2011-08-01 05:11:48 +04:00
|
|
|
ALSA_INCLUDE=${alsaLib}/include/alsa/version.h \
|
2011-08-01 05:10:01 +04:00
|
|
|
HEAD=${coreutils}/bin/head \
|
2011-08-01 05:10:28 +04:00
|
|
|
ZIPEXE=${zip}/bin/zip \
|
2011-08-01 05:11:09 +04:00
|
|
|
FREETYPE_HEADERS_PATH=${freetype}/include \
|
2011-08-01 05:11:17 +04:00
|
|
|
FREETYPE_LIB_PATH=${freetype}/lib \
|
2011-08-01 05:11:32 +04:00
|
|
|
MILESTONE="release" \
|
|
|
|
BUILD_NUMBER="127" \
|
2011-08-01 05:11:40 +04:00
|
|
|
CUPS_HEADERS_PATH="${cups}/include" \
|
2011-08-01 05:11:56 +04:00
|
|
|
USRBIN_PATH="/" \
|
|
|
|
COMPILER_PATH="/" \
|
|
|
|
DEVTOOLS_PATH="/" \
|
2011-08-01 05:12:04 +04:00
|
|
|
NAWK=${gawk}/bin/gawk \
|
2011-08-01 05:12:12 +04:00
|
|
|
PRINTF=${coreutils}/bin/printf \
|
2011-08-01 05:12:28 +04:00
|
|
|
BOOTDIR=${jdk} \
|
2011-08-01 05:12:44 +04:00
|
|
|
FIND=${findutils}/bin/find \
|
2011-08-01 05:13:27 +04:00
|
|
|
ALLOW_DOWNLOADS=true \
|
2011-08-01 05:08:58 +04:00
|
|
|
CC=${stdenv.gcc}/bin/gcc
|
|
|
|
'';
|
|
|
|
|
2011-08-01 05:08:23 +04:00
|
|
|
configurePhase = ''
|
2011-08-01 05:08:58 +04:00
|
|
|
make ${makeFlags} sanity
|
2011-08-01 05:08:23 +04:00
|
|
|
'';
|
2011-07-28 22:53:12 +04:00
|
|
|
}
|
2011-08-01 05:08:32 +04:00
|
|
|
|