diff options
author | sterni <sternenseemann@systemli.org> | 2021-10-09T14·48+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-10-10T10·03+0000 |
commit | 2397fd8d569c5006b52a6afe677e0a597599c909 (patch) | |
tree | 5929bc49781cef048c6dd44e2748d26a8526e4ec /web | |
parent | 04f7cc3880912abb738d3d3bc20e7622a211f25e (diff) |
feat(nix/sparseTree): allow specifying subtrees as relative paths r/2957
Passed strings will be treated as a relative path below the given root, which is quite convenient when using depot.path by eliminating a lot of repetition. Change-Id: I3da6058094484f4a6ffbb84f89ad4472b502a00c Reviewed-on: https://cl.tvl.fyi/c/depot/+/3704 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'web')
-rw-r--r-- | web/bubblegum/default.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/web/bubblegum/default.nix b/web/bubblegum/default.nix index 2db6f042044b..5ee461456125 100644 --- a/web/bubblegum/default.nix +++ b/web/bubblegum/default.nix @@ -12,20 +12,20 @@ let minimalDepot = sparseTree depot.path [ # general depot things - (depot.path + "/default.nix") - (depot.path + "/nix/readTree") + "default.nix" + "nix/readTree" # nixpkgs for lib and packages - (depot.path + "/third_party/nixpkgs") - (depot.path + "/third_party/overlays") + "third_party/nixpkgs" + "third_party/overlays" # bubblegum and its dependencies - (depot.path + "/web/bubblegum") - (depot.path + "/nix/runExecline") - (depot.path + "/nix/utils") - (depot.path + "/nix/sparseTree") + "web/bubblegum" + "nix/runExecline" + "nix/utils" + "nix/sparseTree" # tvix docs for svg demo - (depot.path + "/tvix/docs") + "tvix/docs" # for blog.nix - (depot.path + "/users/sterni/nix") + "users/sterni/nix" ]; statusCodes = { |