NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.64k stars 13.8k forks source link

[Tracking] Improve JDK infrastucture #313216

Open jlesquembre opened 4 months ago

jlesquembre commented 4 months ago

This issue tracks all the issues and pull requests related to improving the JDK infrastucture on nixpkgs (See https://discourse.nixos.org/t/improve-the-jdk-infrastructure-on-nixpkgs/)

I will continue to update this issue as new pull requests or issues are created. While discussions should primarily take place on the corresponding issues themselves, feel free to leave a comment here if you believe something relevant has been missed.

Automate JDK version updates

Remove old/unused JDK derivations

Build OpenJDK

Documentation

To be done


cc @doronbehar @rjpcasalino @nessdoor @raboof @Infinidoge

nixos-discourse commented 4 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/improve-the-jdk-infrastructure-on-nixpkgs/45678/8

liff commented 4 months ago

Does #301653 count as a JDK version update automation? Even though JBR is pretty specifically for JetBrains IDEs…

Infinidoge commented 4 months ago

It does. Whether we like it or not, it's a JDK.

nixos-discourse commented 4 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/improve-the-jdk-infrastructure-on-nixpkgs/45678/28

Infinidoge commented 4 months ago

286267 has been split into a number of smaller PRs:

I expect several of these to need to be switched over to staging, but I'm waiting until OfBorg evals them and until I have enough spoons to actually do that. I've already accidentally failed one cross-branch rebase today, I'm not going it again.

Lesson learned, break up PRs as much as possible.

yu-re-ka commented 2 months ago

Cross-compilation of openjdk is also wildly broken, as the entire dependencies within javaPackages do not get spliced properly, and several dependencies are added as buildInputs instead of nativeBuildInputs