16 lines
188 B
Nix

with import <nixpkgs> {};
let
jdk = adoptopenjdk-bin;
in
stdenv.mkDerivation {
name = "jdk";
buildInputs = [
jdk
];
shellHook = ''
export JAVA_HOME=${jdk.home}
'';
}