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
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, alsaLib
|
|
|
|
, ant
|
|
|
|
}:
|
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:10:08 +01:00
|
|
|
buildInputs = [ unzip procps ant ];
|
2011-08-01 02:08:15 +01:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
|
2011-08-01 02:08:32 +01:00
|
|
|
--replace /bin/echo ${coreutils}/bin/echo
|
2011-08-01 02:08:15 +01:00
|
|
|
substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
|
2011-08-01 02:08:32 +01:00
|
|
|
--replace /usr/nix/store /nix/store
|
2011-08-01 02:08:15 +01:00
|
|
|
'';
|
2011-08-01 02:08:23 +01:00
|
|
|
|
2011-08-01 02:08:58 +01:00
|
|
|
makeFlags = ''
|
|
|
|
MKDIR=${coreutils}/bin/mkdir \
|
2011-08-01 02:09:06 +01:00
|
|
|
GREP=${gnugrep}/bin/grep \
|
2011-08-01 02:09:38 +01:00
|
|
|
EGREP=${gnugrep}/bin/egrep \
|
2011-08-01 02:09:14 +01:00
|
|
|
DATE=${coreutils}/bin/date \
|
2011-08-01 02:09:22 +01:00
|
|
|
PWD=${coreutils}/bin/pwd \
|
2011-08-01 02:09:30 +01:00
|
|
|
TR=${coreutils}/bin/tr \
|
2011-08-01 02:09:45 +01:00
|
|
|
SED=${gnused}/bin/sed \
|
2011-08-01 02:09:53 +01:00
|
|
|
ALSA_INCLUDE=${alsaLib}/include \
|
2011-08-01 02:10:01 +01:00
|
|
|
HEAD=${coreutils}/bin/head \
|
2011-08-01 02:10:28 +01:00
|
|
|
ZIPEXE=${zip}/bin/zip \
|
2011-08-01 02:08:58 +01:00
|
|
|
CC=${stdenv.gcc}/bin/gcc
|
|
|
|
'';
|
|
|
|
|
2011-08-01 02:08:23 +01:00
|
|
|
configurePhase = ''
|
2011-08-01 02:08:58 +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
|
|
|
|