Skip to content

Commit

Permalink
Add basic nix development shell (#9162)
Browse files Browse the repository at this point in the history
* Add basic nix development shell

* Use google-chrome instead of chromium

* Move nix stuff to subdirectory

* Update gemset, improve readme, fix shell

* Update nix README, remove .envrc
  • Loading branch information
b12f committed May 10, 2021
1 parent d4a0b55 commit 8ccbc46
Show file tree
Hide file tree
Showing 4 changed files with 3,837 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,6 @@ structure.sql

# Local development docker
/.env

# Local development direnv file
/.envrc
24 changes: 24 additions & 0 deletions nix/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nix development

This directory contains files that ease development on nix-enabled systems. Just run `nix-shell ./nix` in the root project directory.

The setup was tested on docker-enabled systems, however nothing should stop you from using this without docker.

This is still a work in progress, feel free to improve as needed.

## Updating gemset.nix

Run `bundix --gemset=./nix/gemset.nix` to update the gemset file from the Gemlock file.

## Autoloading

If you have `lorri` and `direnv` installed, you can autoload the shell by adding a `.envrc` to the root directory with
the following contents:

```
eval "$(lorri direnv --shell-file ./nix/shell.nix)"
```

## Questions?

Contact @b12f
Loading

0 comments on commit 8ccbc46

Please sign in to comment.