devshell/README.md

95 lines
1.9 KiB
Markdown
Raw Normal View History

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)
2024-01-04 19:41:23 +05:30
- [Direnv](https://direnv.net) + [nix-direnv](https://github.com/nix-community/nix-direnv) (optional)
2023-12-08 14:47:15 +05:30
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
2023-12-09 01:03:54 +05:30
- [rustfmt](https://github.com/rust-lang/rustfmt)
- [rust-analyzer](https://rust-analyzer.github.io/)
- [cargo](https://github.com/rust-lang/cargo)
2023-12-08 15:22:58 +05:30
#### Activate with Nix
```sh
$ nix develop github:adtya/devshell#rust
```
#### Activate with Direnv
```sh
use flake github:adtya/devshell#rust
```
2024-01-04 19:41:23 +05:30
### Node
#### What's included?
- [nodejs](https://nodejs.org)
- [yarn](https://yarnpkg.com)
#### Activatge with Nix
```sh
$ nix develop github:adtya/devshell#node
```
#### Activate with Direnv
```sh
use flake github:adtya/devshell#node
```