about summary refs log tree commit diff
path: root/tools/depot-deps.nix
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2022-05-05T17·18+0200
committerJonas Chevalier <zimbatm@zimbatm.com>2022-05-05T17·42+0000
commitc56a0e276024da1cc0fef4d85d3e866f1b8e1eb0 (patch)
tree1dcd1112194554780c8fa1fb8c6bf65a1f91a4ae /tools/depot-deps.nix
parent7406e959548bb03e750cd802f06814c062e2a2db (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 'tools/depot-deps.nix')
-rw-r--r--tools/depot-deps.nix45
1 files changed, 19 insertions, 26 deletions
diff --git a/tools/depot-deps.nix b/tools/depot-deps.nix
index c805746c8971..180ffbd99f94 100644
--- a/tools/depot-deps.nix
+++ b/tools/depot-deps.nix
@@ -2,33 +2,26 @@
 # that should be lazily made available in depot.
 { pkgs, depot, ... }:
 
-let
-  deps = depot.nix.lazy-deps {
-    age-keygen.attr = "third_party.nixpkgs.age";
-    age.attr = "third_party.nixpkgs.age";
-    depotfmt.attr = "tools.depotfmt";
-    gerrit-update.attr = "tools.gerrit-update";
-    gerrit.attr = "tools.gerrit-cli";
-    hash-password.attr = "tools.hash-password";
-    mg.attr = "tools.magrathea";
-    nint.attr = "nix.nint";
-    niv.attr = "third_party.nixpkgs.niv";
-    rebuild-system.attr = "ops.nixos.rebuildSystem";
-    rink.attr = "third_party.nixpkgs.rink";
+depot.nix.lazy-deps {
+  age-keygen.attr = "third_party.nixpkgs.age";
+  age.attr = "third_party.nixpkgs.age";
+  depotfmt.attr = "tools.depotfmt";
+  gerrit-update.attr = "tools.gerrit-update";
+  gerrit.attr = "tools.gerrit-cli";
+  hash-password.attr = "tools.hash-password";
+  mg.attr = "tools.magrathea";
+  nint.attr = "nix.nint";
+  niv.attr = "third_party.nixpkgs.niv";
+  rebuild-system.attr = "ops.nixos.rebuildSystem";
+  rink.attr = "third_party.nixpkgs.rink";
 
-    tf-glesys = {
-      attr = "ops.glesys.terraform";
-      cmd = "terraform";
-    };
+  tf-glesys = {
+    attr = "ops.glesys.terraform";
+    cmd = "terraform";
+  };
 
-    tf-keycloak = {
-      attr = "ops.keycloak.terraform";
-      cmd = "terraform";
-    };
+  tf-keycloak = {
+    attr = "ops.keycloak.terraform";
+    cmd = "terraform";
   };
-in
-pkgs.mkShell {
-  buildInputs = [
-    deps
-  ];
 }