1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers/openjdk/default.nix
Shea Levy 39bea03827 openjdk: Override hardcoded date
svn path=/nixpkgs/trunk/; revision=28037
2011-08-01 01:09:14 +00:00

32 lines
811 B
Nix

{stdenv, fetchurl, unzip, procps, coreutils, gnugrep}:
stdenv.mkDerivation rec {
name = "openjdk-7b127";
src = fetchurl {
url = http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip;
sha256 = "1qhwlz9y5qmwmja4qnxg6sn3pgsg1i11fb9j41w8l26acyhk34rs";
};
buildInputs = [ unzip procps ];
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
'';
makeFlags = ''
MKDIR=${coreutils}/bin/mkdir \
GREP=${gnugrep}/bin/grep \
DATE=${coreutils}/bin/date \
CC=${stdenv.gcc}/bin/gcc
'';
configurePhase = ''
make ${makeFlags} sanity
'';
}