about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-19T11·33+0300
committertazjin <mail@tazj.in>2021-09-20T08·30+0000
commit0939d4bf054746ac72f97b9e863c9b5b06841dc9 (patch)
tree5acf423c121fc4502667a90f864da72a7886546e
parent0e3858b5e5bb5717319c5a17fb195c51f1cbf06c (diff)
refactor(depot): Import depot.path using lib.cleanSource r/2891
This imports a copy of the depot as `depot.path` without including the
.git directory and other stuff that isn't tracked in the tree.

Significantly reduces thie amount of data copied into the store.

Change-Id: I567c0f969d1cea81d121588548f6db627c8f3432
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3601
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 941110b22200..dcf3e9fda9db 100644
--- a/default.nix
+++ b/default.nix
@@ -111,7 +111,7 @@ in fix(self: (readDepot {
 }) // {
   # Make the path to the depot available for things that might need it
   # (e.g. NixOS module inclusions)
-  path = ./.;
+  path = self.third_party.nixpkgs.lib.cleanSource ./.;
 
   # List of all buildable targets, for CI purposes.
   #