!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

142 Members
32 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
6 Jul 2024
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Using the Nixpkgs OpenJFX would be the better solution20:48:38
7 Jul 2024
@devurandom:matrix.orgDennis I do not know much about OpenJFX. How can I make gradle run run the application with a different OpenJFX implementation? Does that need modifications to the build.gradle script? 00:18:25
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Unfortunately I don't know much about JFX either, so I'd have to do some tinkering to figure it out03:44:45
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(And I have a midterm Monday so unfortunately I don't have the time to dig into it at the moment)03:45:11
@devurandom:matrix.orgDennis

Thanks!

I found docs that seem promising: https://github.com/openjfx/javafx-gradle-plugin?tab=readme-ov-file#5-using-a-local-javafx-sdk

However I noticed that after nix-collect-garbage nothing in /run/current-system or /nix/store remains of jfx / javafx. Of the openjfx packages only some drv files remain:

❯ ls /nix/store/*openjfx*
   #                                                 name                                                  type      size         modified
   0   /nix/store/0451pbbdphkz64rfz9f7j6vv38ar80rp-openjfx-deps-22.0.1-ga.drv                             file       4.2 KiB   54 years ago
   1   /nix/store/385rb03mfsfsz7536qzy96cvvamwvwgk-openjfx-deps-21.0.3-ga.drv                             file       4.4 KiB   54 years ago
   2   /nix/store/604ghwk9gy9yxz17yrlrm7nr60qv2iwk-openjfx-modular-sdk-22.0.1-ga_fish-completions.drv     file       2.1 KiB   54 years ago
   3   /nix/store/qrm093p68pzdrd8h9jvqzcdpq0zafnwi-openjfx-modular-sdk-21.0.3-ga.drv                      file       5.1 KiB   54 years ago
   4   /nix/store/v2k5drzq7k6m316n7998616fqyricmv1-openjfx-modular-sdk-22.0.1-ga.drv                      file       4.9 KiB   54 years ago
   5   /nix/store/vbdsg55wkkkbi5n1x2f5dq9x287bksfc-openjfx-modular-sdk-21.0.3-ga_fish-completions.drv     file       2.1 KiB   54 years ago

Is this because I have no application installed that uses these packages? So Nix ignores systemPackages and believes the package is not needed?

14:20:04
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️How- How did matrix put that message in between July 6th messages14:20:55
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️SmartSelect_20240707_102112_SchildiChat.jpg
Download SmartSelect_20240707_102112_SchildiChat.jpg
14:21:32
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️SmartSelect_20240707_102122_SchildiChat.jpg
Download SmartSelect_20240707_102122_SchildiChat.jpg
14:21:33
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @devurandom:matrix.org

Thanks!

I found docs that seem promising: https://github.com/openjfx/javafx-gradle-plugin?tab=readme-ov-file#5-using-a-local-javafx-sdk

However I noticed that after nix-collect-garbage nothing in /run/current-system or /nix/store remains of jfx / javafx. Of the openjfx packages only some drv files remain:

❯ ls /nix/store/*openjfx*
   #                                                 name                                                  type      size         modified
   0   /nix/store/0451pbbdphkz64rfz9f7j6vv38ar80rp-openjfx-deps-22.0.1-ga.drv                             file       4.2 KiB   54 years ago
   1   /nix/store/385rb03mfsfsz7536qzy96cvvamwvwgk-openjfx-deps-21.0.3-ga.drv                             file       4.4 KiB   54 years ago
   2   /nix/store/604ghwk9gy9yxz17yrlrm7nr60qv2iwk-openjfx-modular-sdk-22.0.1-ga_fish-completions.drv     file       2.1 KiB   54 years ago
   3   /nix/store/qrm093p68pzdrd8h9jvqzcdpq0zafnwi-openjfx-modular-sdk-21.0.3-ga.drv                      file       5.1 KiB   54 years ago
   4   /nix/store/v2k5drzq7k6m316n7998616fqyricmv1-openjfx-modular-sdk-22.0.1-ga.drv                      file       4.9 KiB   54 years ago
   5   /nix/store/vbdsg55wkkkbi5n1x2f5dq9x287bksfc-openjfx-modular-sdk-21.0.3-ga_fish-completions.drv     file       2.1 KiB   54 years ago

Is this because I have no application installed that uses these packages? So Nix ignores systemPackages and believes the package is not needed?

More specifically, it gets garbage collected because it isn't listed as a garbage collection root. I believe there is a nix store command to add it manually, or you can use something like system.extraDependencies to include it in your NixOS configuration
14:23:42
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️It's not an ideal solution, referring to nix store paths explicitly isn't generally recommended, but it does work at least14:24:31
@devurandom:matrix.orgDennis Thanks! Why did that not happen to other packages in systemPackages? Because they install sth into /run/current-system? 14:25:12
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @devurandom:matrix.org
Thanks! Why did that not happen to other packages in systemPackages? Because they install sth into /run/current-system?
Yes. Everything that is installed in the system is part of the "closure", which is marked as a garbage collection root, so it doesn't get cleaned up
14:26:14
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(It wouldn't be very good if you garbage collected all of the stuff your system needed to run lol)14:26:34

Show newer messages


Back to Room ListRoom Version: 6