2023-12-08 13:18:53 +05:30
|
|
|
# Dev Shells with Nix
|
|
|
|
|
|
|
|
This repo contains a bunch of handy dev shells that can used on any system that has the nix package manager installed.
|
|
|
|
|
2023-12-08 14:47:15 +05:30
|
|
|
## Requirements
|
|
|
|
- [Nix](https://github.com/nixos/nix)
|
|
|
|
- [Direnv](https://direnv.net) (Optional)
|
|
|
|
- [nix-direnv](https://github.com/nix-community/nix-direnv) (optional)
|
|
|
|
|
2023-12-08 13:18:53 +05:30
|
|
|
## Available shells
|
|
|
|
|
|
|
|
### Go
|
2023-12-08 14:47:15 +05:30
|
|
|
|
|
|
|
#### What's included?
|
|
|
|
- `go`
|
|
|
|
- [`gopls`](https://github.com/golang/tools/tree/master/gopls)
|
|
|
|
|
|
|
|
#### Activate with Nix
|
|
|
|
```sh
|
|
|
|
$ nix develop github:adtya/devshell#go
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Activate with Direnv
|
|
|
|
```sh
|
|
|
|
use flake github:adtya/devshell#go
|
|
|
|
```
|
2023-12-08 13:18:53 +05:30
|
|
|
|
2023-12-08 13:30:37 +05:30
|
|
|
### Python
|
2023-12-08 14:47:15 +05:30
|
|
|
|
|
|
|
#### What's included?
|
|
|
|
- `python3`
|
|
|
|
- [`pipenv`](https://github.com/pypa/pipenv)
|
|
|
|
- [`pyright`](https://github.com/microsoft/pyright)
|
|
|
|
- [`black`](https://github.com/microsoft/pyright)
|
|
|
|
|
|
|
|
#### Activate with Nix
|
|
|
|
```sh
|
|
|
|
$ nix develop github:adtya/devshell#python
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Activate with Direnv
|
|
|
|
```sh
|
|
|
|
use flake github:adtya/devshell#python
|
|
|
|
layout pipenv # adding this will also activate pipenv shell
|
|
|
|
```
|
2023-12-08 14:11:16 +05:30
|
|
|
|
|
|
|
### Haskell
|
2023-12-08 14:47:15 +05:30
|
|
|
|
|
|
|
#### What's included?
|
|
|
|
- [`ghc`](https://www.haskell.org/ghc/)
|
|
|
|
- [`haskell-language-server`](https://github.com/haskell/haskell-language-server)
|
|
|
|
- [`cabal`](https://www.haskell.org/cabal/)
|
|
|
|
- [`stack`](https://docs.haskellstack.org/en/stable/)
|
|
|
|
|
|
|
|
#### Activate with Nix
|
|
|
|
```sh
|
|
|
|
$ nix develop github:adtya/devshell#haskell
|
|
|
|
```
|
|
|
|
#### Activate with Direnv
|
|
|
|
```sh
|
|
|
|
use flake github:adtya/devshell#haskell
|
|
|
|
```
|
2023-12-08 15:22:58 +05:30
|
|
|
|
|
|
|
### Rust
|
|
|
|
|
|
|
|
#### What's included?
|
|
|
|
- rustc
|
|
|
|
- rustfmt
|
|
|
|
- rust-analyzer
|
|
|
|
|
|
|
|
#### Activate with Nix
|
|
|
|
```sh
|
|
|
|
$ nix develop github:adtya/devshell#rust
|
|
|
|
```
|
|
|
|
#### Activate with Direnv
|
|
|
|
```sh
|
|
|
|
use flake github:adtya/devshell#rust
|
|
|
|
```
|