diff --git a/pkgs/development/compilers/openjdk/default.nix b/pkgs/development/compilers/openjdk/default.nix index 4109363f038c..801aa0765fde 100644 --- a/pkgs/development/compilers/openjdk/default.nix +++ b/pkgs/development/compilers/openjdk/default.nix @@ -26,6 +26,11 @@ stdenv.mkDerivation rec { buildInputs = [ unzip procps ant which zip ]; + postUnpack = '' + sed -i s@/usr/bin/test@${coreutils}/bin/test@ \ + openjdk/hotspot/make/linux/makefiles/sa.make + ''; + makeFlags = '' MKDIR=${coreutils}/bin/mkdir \ TOUCH=${coreutils}/bin/touch \