diff options
author | zimbatm <zimbatm@zimbatm.com> | 2022-05-05T17·18+0200 |
---|---|---|
committer | Jonas Chevalier <zimbatm@zimbatm.com> | 2022-05-05T17·42+0000 |
commit | c56a0e276024da1cc0fef4d85d3e866f1b8e1eb0 (patch) | |
tree | 1dcd1112194554780c8fa1fb8c6bf65a1f91a4ae /.envrc | |
parent | 7406e959548bb03e750cd802f06814c062e2a2db (diff) |
chore: simplify the .envrc loading r/4006
nix-shell pollutes the environment with all sorts of variables. Let's just add the tools to the PATH? This also papers over the various differences in users `use_nix` implementations by not using it at all. Change-Id: If4282531fd6b7453b3611fe50217beacadc08bb5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5524 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.envrc b/.envrc index a2f332887060..dcd2a5654668 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,7 @@ # Configure the local PATH to contain tools which are fetched ad-hoc # from Nix. -use nix -A tools.depot-deps + +out=$(nix-build -A tools.depot-deps --no-out-link) +PATH_add "$out" + watch_file tools/depot-deps.nix |