gradle: fix cross builds

This commit is contained in:
FliegendeWurst
2025-01-17 08:24:24 +01:00
parent c97cbc1c98
commit aa112238de
@@ -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
@@ -121,6 +121,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)"