openjdk: Fix hard-code to echo

svn path=/nixpkgs/trunk/; revision=28030
This commit is contained in:
Shea Levy 2011-08-01 01:08:15 +00:00
parent 11f0ca9320
commit 686476b7bb

@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip, procps}:
{stdenv, fetchurl, unzip, procps, coreutils}:
stdenv.mkDerivation {
name = "openjdk-7b127";
@ -9,4 +9,11 @@ stdenv.mkDerivation {
};
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
'';
}