Skip to content

Commit cb4798b

Browse files
committed
feat(flake): complete revamp with devenv/direnv
Not perfect, and mostly a port of the previous edition. Hours have already been sunk into this, and need to get this out for consumption, and for ironing out. For more information see: https://devenv.sh NOTE: impure is used only because of the devenv-managed state, do not be alarmed!
1 parent e1b1ef9 commit cb4798b

4 files changed

Lines changed: 691 additions & 115 deletions

File tree

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
2+
source_url 'https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc' 'sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs='
3+
fi
4+
5+
watch_file flake.nix
6+
watch_file flake.lock
7+
8+
if ! use flake . --impure; then
9+
printf '%s\n' "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
10+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,6 @@ compile_commands.json
253253
.TagStudio
254254
TagStudio.ini
255255
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,qt
256+
257+
.direnv
258+
.devenv

0 commit comments

Comments
 (0)