diff options
author | Vika <vika@fireburn.ru> | 2022-07-07 00:38:44 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-07-07 00:38:44 +0300 |
commit | 0dbea0aa1acc66116dc0170bcc031b5c372515f4 (patch) | |
tree | 55e9e5533e8857607617f7cabaadaaec2261def1 /kittybox-rs | |
parent | 346b3e01a27f68c26581090357407bae73b27060 (diff) | |
download | kittybox-0dbea0aa1acc66116dc0170bcc031b5c372515f4.tar.zst |
.envrc: update nix-direnv install invocation
Diffstat (limited to 'kittybox-rs')
-rw-r--r-- | kittybox-rs/.envrc | 9 |
1 files 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 |