Fork me on GitHub
#clj-kondo
<
2023-11-22
>
jcf14:11:29

A few Nix users (including myself) have run into a puzzling issue with clj-kondo, jet and clojure-lsp.

error: output '/nix/store/3c1pjrwjnfkb06abcs322nbn4a3mv2nj-clojure-lsp-2023.08.06-00.28.06' is not allowed to refer to the following paths:
         /nix/store/qlwc7ymlnafhw368vwwn4bbqcl06xqbc-graalvm-ce-21.0.1
error: 1 dependencies of derivation '/nix/store/bkhx8pdvay3k4h3sv5q7h4c9g72q8cxl-nix-shell-env.drv' failed to build
It seems to be specific to macOS and didn’t present itself before the automatic upgrade from 2023.09.07 -> 2023.10.20. Did anything change between those versions that we should incorporate into the packaging process? https://github.com/NixOS/nixpkgs/issues/269029

👀 2
zane14:11:05

Also experiencing this issue.

borkdude14:11:35

Clj-kondo moved to Oracle GraalVM

borkdude14:11:50

Don't know what impact this has on nix

jcf14:11:51

My working hypothesis has been this comes down to buildGraalvmNativeImage in Nix as multiple packages are affected. If all of the affected packages have moved to Oracle GraalVM… That’s helpful — thanks, @U04V15CAJ!

2
ericdallo14:11:12

I created https://github.com/NixOS/nixpkgs/pull/259639 to add oracle graalvm to nixpkgs but it was not merged yet, after that, we can update all derivations that use oracle graalvm like clojure-lsp. clj-kondo etc to use that one

👀 4
zane12:11:18

@U06FTAZV3 Thanks, and congratulations on your first-time contribution!

jcf12:11:19

@U050CT4HR thank you! I hope the intersection between the Nix and Clojure communities will find it valuable. I for one can’t wait to install the latest version of clj-kondo in a new project I’m really excited about!

ericdallo12:11:04

Will we need this for other derivations that use graal like clojure-lsp, babashka etc?

ericdallo13:11:06

@U06FTAZV3 would you mind changing the other derivations doing the same 😅? I think could be in the same PR

jcf13:11:07

@UKFSJSM38 if I get the clj-kondo PR approved and merged, it’s something I can look at.

ericdallo14:11:57

awesome, thank you!