Adding simple java recipe

This commit is contained in:
Dag Olav Prestegarden 2019-07-11 13:04:06 +02:00
commit 681650812c

15
shell-recipes/java.nix Normal file
View File

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