mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
openjdk: Factor path overrides out into makeFlags
svn path=/nixpkgs/trunk/; revision=28035
This commit is contained in:
parent
146d6875b3
commit
b3ab977d90
1 changed files with 7 additions and 2 deletions
|
@ -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 a new issue