-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic nix development shell (#9162)
* 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
Showing
4 changed files
with
3,837 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,3 +114,6 @@ structure.sql | |
|
||
# Local development docker | ||
/.env | ||
|
||
# Local development direnv file | ||
/.envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.