Skip to content

Commit

Permalink
fix(direnv): disable flake devshell activation
Browse files Browse the repository at this point in the history
... pending resolution of
cachix/devenv#745 (comment)
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Dec 8, 2023
1 parent 93d81a0 commit 6f24a3e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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
# 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

if ! use flake . --impure --accept-flake-config
then
echo "nix flake could not be built; update flake.nix and run direnv allow/reload" >&2
fi
# if ! use flake . --impure --accept-flake-config
# then
# echo "nix flake could not be built; update flake.nix and run direnv allow/reload" >&2
# fi

printf "\nrun \`nix flake update --impure && nix flake check --impure\` to update the flake lockfile."
printf "\nuse \`direnv revoke\` to unload the dev environment or \`direnv allow\` to reload it.\n\n"
# printf "\nrun \`nix flake update --impure && nix flake check --impure\` to update the flake lockfile."
# printf "\nuse \`direnv revoke\` to unload the dev environment or \`direnv allow\` to reload it.\n\n"

# not necessary if using nix flake
# devenv devshell with dotenv enabled
Expand Down

0 comments on commit 6f24a3e

Please sign in to comment.