openjdk: Replace substitutions with env vars

svn path=/nixpkgs/trunk/; revision=28062
This commit is contained in:
Shea Levy 2011-08-01 01:12:36 +00:00
parent b1b5b09557
commit 40d1bd9950

View file

@ -25,15 +25,9 @@ stdenv.mkDerivation rec {
buildInputs = [ unzip procps ant which ];
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 \
ECHO=${coreutils}/bin/echo \
CAT=${coreutils}/bin/cat \
GREP=${gnugrep}/bin/grep \
EGREP=${gnugrep}/bin/egrep \