about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/bubblegum/default.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/web/bubblegum/default.nix b/web/bubblegum/default.nix
index ed4e48839b89..0ad541390bb7 100644
--- a/web/bubblegum/default.nix
+++ b/web/bubblegum/default.nix
@@ -6,8 +6,27 @@ let
     runExecline
     getBins
     utils
+    sparseTree
     ;
 
+  minimalDepot = sparseTree depot.path [
+    # general depot things
+    (depot.path + "/default.nix")
+    (depot.path + "/nix/readTree")
+    # nixpkgs for lib and packages
+    (depot.path + "/third_party/nixpkgs")
+    (depot.path + "/third_party/overlays")
+    # bubblegum and its dependencies
+    (depot.path + "/web/bubblegum")
+    (depot.path + "/nix/runExecline")
+    (depot.path + "/nix/utils")
+    (depot.path + "/nix/sparseTree")
+    # tvix docs for svg demo
+    (depot.path + "/tvix/docs")
+    # for blog.nix
+    (depot.path + "/users/sterni/nix")
+  ];
+
   statusCodes = {
     # 1xx
     "Continue" = 100;
@@ -205,7 +224,7 @@ let
       ] ++ [
         "${bins.nint}"
         # always pass depot so scripts can use this library
-        "--arg depot '(import ${depot.path} {})'"
+        "--arg depot '(import ${minimalDepot} {})'"
       ]);
     in runExecline.local drvName {} [
       "importas" "out" "out"