guix

Benjamin C 2023-03-17T00:46:57.097809Z

Anyone here know how I can use clojure with java 11 on guix? Seems to be 8 by default.

Eugen 2023-03-22T11:15:59.220049Z

I don't know but it is a good point. Have you asked on their issues tracker or ML ? https://issues.guix.gnu.org/ I am also looking at guix and trying to use it. It seems it still has ways to go before it reaches maturity. Debian solves this problem by introducing pseudo-packages ?! (not sure about the name). The idea is jdk source packages provide a pseudo package like openjdk-jre or openjdk-jdk . Packages will depend on this pseudo package instead of the hardcoded version. Not sure if guix offers this capability.

Benjamin C 2023-03-22T18:35:17.563349Z

Turns out it isn't hard at all; Just need to install openjdk at whatever version you're after. The reason it didn't work for me at first was because I was using guix install and guix-home at the same time, so the path resolved the icedtea (java 8) version I had in the home config first.

Eugen 2023-03-22T18:35:52.954259Z

great to hear that

Eugen 2023-03-22T18:36:23.918269Z

I did check the package definition and I did not see a direct dependency on Java package - but was not sure if that was the case