gradle: fix cross builds (#371477)

This commit is contained in:
misuzu
2025-01-28 18:54:00 +02:00
committed by GitHub
@@ -48,6 +48,7 @@ rec {
runCommand,
writeText,
autoPatchelfHook,
buildPackages,
# The JDK/JRE used for running Gradle.
java ? defaultJava,
@@ -78,7 +79,6 @@ rec {
];
buildInputs = [
java
stdenv.cc.cc
ncurses5
ncurses6
@@ -123,6 +123,8 @@ rec {
newFileEvents = toString (lib.versionAtLeast version "8.12");
in
''
# get the correct jar executable for cross
export PATH="${buildPackages.jdk}/bin:$PATH"
. ${./patching.sh}
nativeVersion="$(extractVersion native-platform $out/lib/gradle/lib/native-platform-*.jar)"