Adding simple java recipe
This commit is contained in:
commit
681650812c
15
shell-recipes/java.nix
Normal file
15
shell-recipes/java.nix
Normal 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}
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user