openjdk: Factor path overrides out into makeFlags

svn path=/nixpkgs/trunk/; revision=28035
This commit is contained in:
Shea Levy 2011-08-01 01:08:58 +00:00
parent 146d6875b3
commit b3ab977d90

View file

@ -1,6 +1,6 @@
{stdenv, fetchurl, unzip, procps, coreutils}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "openjdk-7b127";
src = fetchurl {
@ -17,8 +17,13 @@ stdenv.mkDerivation {
--replace /usr/nix/store /nix/store
'';
makeFlags = ''
MKDIR=${coreutils}/bin/mkdir \
CC=${stdenv.gcc}/bin/gcc
'';
configurePhase = ''
make MKDIR=${coreutils}/bin/mkdir CC=${stdenv.gcc}/bin/gcc sanity
make ${makeFlags} sanity
'';
}