openjdk8: readd symlinks and remove useless makeflags
This commit is contained in:
parent
9205d01e1e
commit
e48f5bc198
@ -50,13 +50,16 @@ let
|
|||||||
'';
|
'';
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
# despite --with-override-jdk the build still searchs here
|
# despite --with-override-jdk the build still searchs here
|
||||||
# GNU Patch bug, follow symlinks only follow the last symlink..
|
# GNU Patch bug, --follow-symlinks only follow the last dir part symlink
|
||||||
mv "../jdk-${repover}" "jdk";
|
mv "../jdk-${repover}" "jdk";
|
||||||
mv "../hotspot-${repover}" "hotspot";
|
mv "../hotspot-${repover}" "hotspot";
|
||||||
'';
|
'';
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
mv jdk "../jdk-${repover}";
|
mv jdk "../jdk-${repover}";
|
||||||
mv hotspot "../hotspot-${repover}";
|
mv hotspot "../hotspot-${repover}";
|
||||||
|
# Patching is over, lets re-add the links
|
||||||
|
ln -s "../jdk-${repover}" "jdk"
|
||||||
|
ln -s "../hotspot-${repover}" "hotspot"
|
||||||
'';
|
'';
|
||||||
patches = [
|
patches = [
|
||||||
./fix-java-home-jdk8.patch
|
./fix-java-home-jdk8.patch
|
||||||
@ -83,7 +86,7 @@ let
|
|||||||
"--with-milestone=fcs"
|
"--with-milestone=fcs"
|
||||||
];
|
];
|
||||||
NIX_LDFLAGS= "-lfontconfig";
|
NIX_LDFLAGS= "-lfontconfig";
|
||||||
buildFlags = "DEBUG_BINARIES=true all";
|
buildFlags = "all";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/openjdk $out/share $jre/lib/openjdk
|
mkdir -p $out/lib/openjdk $out/share $jre/lib/openjdk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user