-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan /nix/store
for JDKs
#3
Comments
JDKUpdater in principle simply scans the disk and tries to identify JVM‘s it found. Because some installer like sdkman use their own folders to manage installed software, JDKUpdater can identify the installer too. Meaning to say, if you can tell me where Nix does install JDK‘s, I can add this location to the search path and display them as installed by Nix. If Nix offers a mechanism to install JDK‘s via shell commands I might even be able to offer an update procedure but that’s probably not possible. In case Nix installs the JDK‘s in the default folder /Library/Java/JavaVirtualMachines, I won’t be able to figure where the JDK was „coming“ from. |
Just did a quick check and if I‘m right, the Nix package manager stores it‘s pkgs in /nix/store. Is that also true for JDK‘s? In that case I could scan this path to find JVM‘s. |
Yes, JDKs are also in As far as I know, Nix JDKs are not put into |
Nix is powerful, exciting and frustrating. I would recommend this article for getting started: It's best to set |
Added scanning for the /nix/store path. Will come with the next release. Please let me know if it works once it will be available. |
Can I install from source? |
Nope, there is only the dmg or pkg available atm |
I'm still running macOS 13, so I'll have to wait until I upgrade (which should be soon) to give it a try. |
Check 👍🏻 |
I am finding the Nix package manager very useful these days. Especially since I am using JDK 22 + Panama to interface to a native 'C" library.
It would be nice if JDK-Updater could know about and display JDKs installed via Nix.
p.s. I'm not sure how this can be done efficiently. Maybe there should be some mechanism for JDKs installed via Nix to register somehow.
The text was updated successfully, but these errors were encountered: