From 6f24a3e54cb2391a5332e2ac79d877d018a46c0b Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Thu, 7 Dec 2023 23:49:57 -0500 Subject: [PATCH] fix(direnv): disable flake devshell activation ... pending resolution of https://github.com/cachix/devenv/pull/745#issuecomment-1846536413 Signed-off-by: Cameron Smith --- .envrc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.envrc b/.envrc index 9de7faca..caeac5af 100644 --- a/.envrc +++ b/.envrc @@ -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