add shell for java
This commit is contained in:
parent
871c1d944c
commit
7f90a00482
3 changed files with 21 additions and 2 deletions
17
README.md
17
README.md
|
@ -82,7 +82,8 @@ use flake github:adtya/devshell#rust
|
|||
#### What's included?
|
||||
- [nodejs](https://nodejs.org)
|
||||
- [yarn](https://yarnpkg.com)
|
||||
#### Activatge with Nix
|
||||
|
||||
#### Activate with Nix
|
||||
```sh
|
||||
$ nix develop github:adtya/devshell#node
|
||||
```
|
||||
|
@ -91,4 +92,18 @@ $ nix develop github:adtya/devshell#node
|
|||
```sh
|
||||
use flake github:adtya/devshell#node
|
||||
```
|
||||
### Java
|
||||
|
||||
#### What's included?
|
||||
- OpenJDK 20
|
||||
- gradle 8
|
||||
|
||||
#### Activate with Nix
|
||||
```sh
|
||||
$ nix develop github:adtya/devshell#java
|
||||
```
|
||||
|
||||
#### Activate with Direnv
|
||||
```sh
|
||||
use flake github:adtya/devshell#java
|
||||
```
|
||||
|
|
|
@ -24,9 +24,10 @@
|
|||
devShells = {
|
||||
go = import ./shells/go.nix { inherit pkgs; };
|
||||
haskell = import ./shells/haskell.nix { inherit pkgs; };
|
||||
java = import ./shells/java.nix { inherit pkgs; };
|
||||
node = import ./shells/node.nix { inherit pkgs; };
|
||||
python = import ./shells/python.nix { inherit pkgs; };
|
||||
rust = import ./shells/rust.nix { inherit pkgs; };
|
||||
node = import ./shells/node.nix { inherit pkgs; };
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
3
shells/java.nix
Normal file
3
shells/java.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ pkgs }: pkgs.mkShell {
|
||||
packages = with pkgs; [ openjdk20 gradle_8 java-language-server ];
|
||||
}
|
Loading…
Reference in a new issue