From db563caad9dd3db5253b1eb6a83ebc3324d133c1 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 26 Aug 2021 13:15:04 -0700 Subject: [PATCH] .envrc: Use nix-direnv with `use flake` --- .envrc | 6 +++++- .gitignore | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index 1d953f4..c325083 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,5 @@ -use nix +if ! has nix_direnv_version || ! nix_direnv_version 1.4.0; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.4.0/direnvrc" "sha256-4XfVDjv75eHMWN4G725VW7BoOV4Vl3vAabK4YXIfPyE=" +fi + +use flake diff --git a/.gitignore b/.gitignore index ea8c4bf..6abfe1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +/.direnv