From 0dbea0aa1acc66116dc0170bcc031b5c372515f4 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 7 Jul 2022 00:38:44 +0300 Subject: .envrc: update nix-direnv install invocation --- kittybox-rs/.envrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kittybox-rs/.envrc b/kittybox-rs/.envrc index 46c7b6d..47925b7 100644 --- a/kittybox-rs/.envrc +++ b/kittybox-rs/.envrc @@ -1,4 +1,7 @@ -if which nix &>/dev/null; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.2.4/direnvrc" "sha256-mjD0RK61W+TEffhlEzjv2QB3l/d5FkXQVPd4S5DfCsA=" - use flake +if has nix; then + if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" \ + "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0=" + fi + use flake .. fi -- cgit 1.4.1