mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
openjdk: Factor path overrides out into makeFlags
svn path=/nixpkgs/trunk/; revision=28035
This commit is contained in:
parent
146d6875b3
commit
b3ab977d90
@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user