mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-09-07 18:12:01 +00:00
nix: allow dev setup via direnv
This commit is contained in:
parent
a23e838a01
commit
362d07fc52
3
.gitignore
vendored
3
.gitignore
vendored
@ -73,3 +73,6 @@ s3proxy-ca.crt
|
||||
|
||||
# Lychee link checker
|
||||
.lycheecache
|
||||
|
||||
# direnv
|
||||
.direnv
|
@ -25,6 +25,7 @@ readarray -t <<< "${scriptsStr}"
|
||||
scripts=("${MAPFILE[@]}")
|
||||
|
||||
excludeDirs=(
|
||||
".direnv"
|
||||
"internal/constellation/helm/charts/cilium"
|
||||
"build"
|
||||
"docs/node_modules"
|
||||
|
@ -15,13 +15,22 @@ Prerequisites:
|
||||
|
||||
### Linux
|
||||
|
||||
* If you don't want to perform any setup, you can get a shell with Bazel and all required dependencies by running:
|
||||
If you don't want to perform any setup, you can get a shell with Bazel and all required dependencies by running:
|
||||
|
||||
```sh
|
||||
# better would be: nix develop -i
|
||||
# but this doesn't play nice with bashrc, colored output and non-hermetic tools
|
||||
nix develop
|
||||
```
|
||||
```sh
|
||||
# better would be: nix develop -i
|
||||
# but this doesn't play nice with bashrc, colored output and non-hermetic tools
|
||||
nix develop
|
||||
```
|
||||
|
||||
Or activate [direnv](https://direnv.net/) to automatically enter the nix shell.
|
||||
It is recommended to use [nix-direnv](https://github.com/nix-community/nix-direnv).
|
||||
If your system ships outdated bash, [install direnv](https://direnv.net/docs/installation.html) via package manager.
|
||||
Additionally, you may want to add the [vscode extension](https://github.com/direnv/direnv-vscode).
|
||||
|
||||
```sh
|
||||
direnv allow
|
||||
```
|
||||
|
||||
### Mac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user