Skip to content

Commit

Permalink
use devenv for nix develop (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Sep 2, 2023
1 parent bc5f9a1 commit 1aaf01f
Show file tree
Hide file tree
Showing 4 changed files with 349 additions and 121 deletions.
11 changes: 10 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
use flake
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

nix_direnv_watch_file rust-toolchain.toml
nix_direnv_watch_file package.json
if ! use flake . --impure
then
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
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ build/

# direnv has been claimed for Nix usage
.direnv/
.devenv

# Ignore Android local properties
local.properties
286 changes: 241 additions & 45 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1aaf01f

Please sign in to comment.