!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

127 Members
27 Servers

Load older messages


SenderMessageTime
17 Jul 2025
@emilazy:matrix.orgemilyI just mean that "just make the existing expressions build on Darwin" may be comparably trivial17:41:28
@emilazy:matrix.orgemilythe things that need doing are mostly not hard, just… nobody with the time to do them :)17:41:52
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @msgilligan:matrix.org
I saw the PR for OpenJDK source build for Darwin a few days ago, but couldn't find it 1/2 hour ago. I recall reading there were provenance issues with Xcode.
Ah yep I remember that PR
17:51:36
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️The problem being that compiling it requires Xcode, which is non-viable for Nix17:51:50
@msgilligan:matrix.orgmsgilliganI found this issue: https://github.com/NixOS/nixpkgs/issues/31321317:51:50
@msgilligan:matrix.orgmsgilligan(I remember doing a GUIX build with Xcode once, but that wasn't part of GUIX itself)17:52:47
@msgilligan:matrix.orgmsgilliganWhy is Xcode non-viable? 17:53:52
@msgilligan:matrix.orgmsgilligan(I realize it's both binary and non-free, but just curious exactly how non-viable is defined in this context)17:54:23
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Pretty sure it would directly violate Xcode's license17:56:30
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️image.png
Download image.png
17:57:39
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Not to mention needing Darling or a VM to even run it on Linux, making cross-compiling impossible17:58:10
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Or at least extremely impractical17:59:46
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️https://docs.godotengine.org/en/2.1/development/compiling/cross-compiling_for_ios_on_linux.html17:59:48
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Godot's page about it makes it seem... extremely not fun17:59:57
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Not the worst, but not fun18:00:08
@emilazy:matrix.orgemilyuhh, why does Xcode even come into this18:00:09
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️From what I remember of the PR, compiling the JDK properly for Darwin required Xcode18:00:29
@emilazy:matrix.orgemilywe have a full native LLVM toolchain and macOS SDK in Nixpkgs18:00:33
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Cool that works then18:00:44
@emilazy:matrix.orgemily you only need Xcode itself in rare cases like the metal command-line tool or ibtool 18:00:45
@emilazy:matrix.orgemily it's not inconceivable that the WebKit build in OpenJFX wants metal or something but I'd be extremely surprised for OpenJDK 18:01:05
@emilazy:matrix.orgemilyok, this is before the 24.11 SDK rework also18:01:40
@emilazy:matrix.orgemilyso everything was very different/harder then18:02:04
@emilazy:matrix.orgemilyI truly think it's probably as easy as turning off GTK/JavaFX, maybe turning off the X11 dependencies, maybe adjusting some of the prefixed tool stuff, and firing off a build18:03:37
@emilazy:matrix.orgemilyI could give pointers for any particular errors that come up but I don't expect any "fundamental" obstacle18:04:02
@msgilligan:matrix.orgmsgilliganI'm tempted to dive into this right now, but I really have too much I'm already committed to on my plate. And it is a task that is currently above my skill level, so I don't think it would be easy for me. I wish I had more time.18:12:28
@msgilligan:matrix.orgmsgilligan

I'd like to make sure two things from this conversation are captured in GitHub Issues:

  1. The idea of using jlink to add OpenJFX to Temurin. Which should allow Darwin to use Temurin rather than Zulu.
  2. Whatever technical details emily is explaining above that are not already covered by existing issues.
18:15:15
@emilazy:matrix.orgemily FWIW I haven't actually tried the jlink thing so I could be wrong about how it works :) 18:18:30
@emilazy:matrix.orgemilyfeel free to open issues though18:18:41
@emilazy:matrix.orgemily I think in any case that it's likely not too hard to get OpenJFX building from source on Darwin even if jlink doesn't work. but I would really rather avoid building two JDKs in general 18:18:57

Show newer messages


Back to Room ListRoom Version: 6