Skip to content

Commit bb3475e

Browse files
committed
build(dev): moved nix flake to use devenv
1 parent 2e3b0b1 commit bb3475e

File tree

4 files changed

+461
-37
lines changed

4 files changed

+461
-37
lines changed

.envrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
use flake .
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+
if ! use flake . --impure
8+
then
9+
echo "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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ todo.md
1616

1717
*storybook.log
1818
components.d.ts
19+
.direnv
20+
.devenv

0 commit comments

Comments
 (0)