I’m trying to create a Java delopment environment with the latest JDK and Jetbrain’s Intellij IDEA Ultimate.
To begin with I ran the command
$ nix-build '<nixpkgs>' -A jdk -o jdk
in my project directory (thanks @clever for the tip!) to get a stable link to the OpenJDK binary.
I’ve two different versions of shell.nix for the project. The first one create a regular shell environment containing the applications I want, and the second one creates a FHS environment. The first version looks like this:
I was able to solve this issue by telling IntelliJ to use lib/openjdk instead of simply the path to the JDK. So /nix/store/...-openjdk/lib/openjdk instead of /nix/store/...-openjdk. Hope this helps!
Did you ever solve this @m68funk ? I am seeing the same currently and even if I nix-env -i autoconf it doesn’t seem to recognize it. I also tried setting AUTOCONF to the installed binary path, no success either.