From 0939d4bf054746ac72f97b9e863c9b5b06841dc9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 19 Sep 2021 14:33:53 +0300 Subject: [PATCH] refactor(depot): Import depot.path using lib.cleanSource 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 --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 941110b22..dcf3e9fda 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. #