!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

121 Members
27 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@msgilligan:matrix.orgmsgilligan

because of course you just end up with a .jar and some shell scripts around it…

Well that's for making a Nix package or deploying, right? If softmoonworld is (perhaps initially) only interested in development, there should be a way to add it via Gradle. My hacky solution added the library via nix profile install, thus:

test {
        useJUnitPlatform()
        def userHome = System.getProperty("user.home")
        systemProperty "java.library.path", findProperty("javaPath") ?: "${userHome}/.nix-profile/lib"
    }
16:55:32
@msgilligan:matrix.orgmsgilligan *

because of course you just end up with a .jar and some shell scripts around it…

Well that's for making a Nix package or deploying, right? If softmoonworld is (perhaps initially) only interested in development, there should be a way to add it via Gradle. My hacky solution added the library via nix profile install, thus:

test {
        useJUnitPlatform()
        def userHome = System.getProperty("user.home")
        systemProperty "java.library.path", findProperty("javaPath") ?: "${userHome}/.nix-profile/lib"
}
16:55:59
@msgilligan:matrix.orgmsgilligan

My hacky GitLab CI build is like this:

# Build on NixOS using the devshell from `flake.nix` and secp256k1 installed via `nix profile install`
nixos-devshell:
  image: nixos/nix:latest
  variables:
    NIXPKGS_URL: "github:NixOS/nixpkgs/nixos-unstable"
  before_script:
    # Configure Nix to use a binary cache and enable experimental features
    - nix-env -iA nixpkgs.cachix
    - cachix use nix-community
    - echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
    - nix profile install nixpkgs#secp256k1
  script:
    - nix develop .#minimum -c gradle build run runEcdsa
  cache:
    key: "${CI_COMMIT_REF_SLUG}"
    paths:
      - /nix/store
      - ~/.gradle/
16:59:09
@msgilligan:matrix.orgmsgilligan So I'm hoping autoAddDriverRunpath might allow me to get rid of the nix profile install 16:59:45
@msgilligan:matrix.orgmsgilligan (I'm also working on a Nix sandbox build using mitmCache = gradle.fetchDeps, etc. But that's not finished yet) 17:02:45
@msgilligan:matrix.orgmsgilligan(I'm using Java FFM ("Panama") to access the native library, so that's why I'm so interested in getting JDK 25 and GraalVM 25 support -- because that's the first LTS release of FFM.)17:05:10
@msgilligan:matrix.orgmsgilliganBTW, Is anyone on this list planning on going to DEFCON/Nix Vegas?17:06:30
@msgilligan:matrix.orgmsgilliganIt would be great to have some kind of a JDK BoF/meetup/talk…17:32:06
@msgilligan:matrix.orgmsgilligan

I posted two comments on Issue #313216: Tracking Improve JDK infrastructure:

The dashboard module would be a good learning experience for me, so if I get halfway-positive feedback I'll probably attempt something. And I'd love to have a mentor or two to give me advice on it.

18:57:18
15 Jul 2025
@softmoonworld:matrix.org@softmoonworld:matrix.org changed their display name from softmoonworld to moon.00:03:44
@softmoonworld:matrix.org@softmoonworld:matrix.org set a profile picture.00:06:09
@softmoonworld:matrix.org@softmoonworld:matrix.org changed their profile picture.00:12:03
@softmoonworld:matrix.org@softmoonworld:matrix.org removed their profile picture.00:12:15
@softmoonworld:matrix.org@softmoonworld:matrix.org set a profile picture.00:13:35
@ginkogruen:matrix.orgginkogruen joined the room.22:52:01
16 Jul 2025
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ @msgilligan:matrix.org Approved membership to NixOS/Java, enjoy the pings 06:13:09
@msgilligan:matrix.orgmsgilliganOh, wow. I didn't expect that to happen so quickly. I hope I am able to help. Thanks!06:15:03
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️You've been doing a lot of legwork recently, and there is no reason to be particularly choosy about who gets pinged, Anyone who wants to sign up for the Sisyphean task can have in aa for as I'm concerned06:16:19
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️* You've been doing a lot of legwork recently, and there is no reason to be particularly choosy about who gets pinged, Anyone who wants to sign up for the Sisyphean task can have in as for as I'm concerned06:16:30
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️That and I happen to be in BST and awake early06:16:45
@msgilligan:matrix.orgmsgilliganBritish Summer TIme?06:18:59
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Yeah06:19:09
@msgilligan:matrix.orgmsgilliganVacation right? You're US-based I thought.06:19:32
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Last day on my family's Scotland trip, flying back today06:19:37
@msgilligan:matrix.orgmsgilliganNice!06:19:51
@msgilligan:matrix.orgmsgilligan

Here's my preliminary work on a Nix JDK Package Dashboard:

$ ./jdk-dashboard.sh  | jq
unpacking 'github:NixOS/nixpkgs/dab3a6e781554f965bde3def0aa2fda4eb8f1708' into the Git cache...
{
  "corretto11": "11.0.26.4.1",
  "corretto17": "17.0.14.7.1",
  "corretto21": "21.0.6.7.1",
  "openjdk11": "11.0.24",
  "openjdk17": "17.0.12",
  "openjdk21": "21.0.4",
  "openjdk24": "24.0.1",
  "semeru-bin-11": "11.0.23",
  "semeru-bin-17": "17.0.9",
  "semeru-bin-21": "21.0.3",
  "semeru-jre-bin-11": "11.0.23",
  "semeru-jre-bin-17": "17.0.9",
  "semeru-jre-bin-21": "21.0.3",
  "temurin-bin-23": "23.0.2",
  "temurin-bin-24": "24.0.1",
  "temurin-jre-bin-11": "11.0.27",
  "temurin-jre-bin-17": "17.0.15",
  "temurin-jre-bin-21": "21.0.7",
  "temurin-jre-bin-23": "23.0.2",
  "temurin-jre-bin-24": "24.0.1",
  "zulu11": "11.0.24",
  "zulu17": "17.0.12",
  "zulu21": "21.0.4",
  "zulu24": "24.0.1"
}
06:34:53
@msgilligan:matrix.orgmsgilligan graalvmPackages.graalvm-ce, graalvmPackages.graalvm-oracle, and jetbrains.jdk are currently commented out because I'm not handling sub-packages yet. 06:36:31
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Makes sense, looks good so far Could look for the recurse for derivations flag06:37:50
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️(Unsure how much you're doing in Nix vs shell)06:38:33
@msgilligan:matrix.orgmsgilligan
#!/bin/sh
nix-instantiate --eval --strict --json "$(dirname "$0")"/jdk-dashboard.nix
06:38:54

Show newer messages


Back to Room ListRoom Version: 6