feat(tvix): drop usage of sparseTree in favor of lib.sourceByRegex
We can avoid depending on things outside //tvix by just using a similar util from nixpkgs. Change-Id: I9ea3e1f0a8a059ea10caaec173569ba9f316aec6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12247 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
bc967c538d
commit
73e16c1855
6 changed files with 25 additions and 41 deletions
|
|
@ -1,16 +1,10 @@
|
|||
{ depot, pkgs, ... }:
|
||||
{ depot, pkgs, lib, ... }:
|
||||
let
|
||||
protos = depot.nix.sparseTree {
|
||||
name = "castore-protos";
|
||||
root = depot.path.origSrc;
|
||||
paths = [
|
||||
./castore.proto
|
||||
./rpc_blobstore.proto
|
||||
./rpc_directory.proto
|
||||
../../../buf.yaml
|
||||
../../../buf.gen.yaml
|
||||
];
|
||||
};
|
||||
protos = lib.sourceByRegex depot.path.origSrc [
|
||||
"buf.yaml"
|
||||
"buf.gen.yaml"
|
||||
"^tvix(/castore(/protos(/.*\.proto)?)?)?$"
|
||||
];
|
||||
in
|
||||
depot.nix.readTree.drvTargets {
|
||||
inherit protos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue