about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index cda18ee7f3b9..cf70c704a99f 100644
--- a/default.nix
+++ b/default.nix
@@ -15,8 +15,12 @@ let
   fix = f: let x = f x; in x;
 
   # Global configuration that all packages are called with.
-  config = pkgs: {
-    inherit pkgs;
+  config = depot: {
+    inherit depot;
+
+    # Pass third_party as 'pkgs' (for compatibility with external
+    # imports for certain subdirectories)
+    pkgs = depot.third_party;
 
     kms = {
       project = "tazjins-infrastructure";
@@ -58,5 +62,5 @@ in fix(self: {
 #
 # This can be used to move things from third_party into the top-level, too (such
 # as `lib`).
-// (readTree' { pkgs = self; }) ./overrides
+// (readTree' { depot = self; pkgs = self.third_party; }) ./overrides
 )