2023-01-06 18:20:44 +01:00
|
|
|
# Target containing just the proto files.
|
|
|
|
|
|
|
|
{ depot, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib.strings) hasSuffix;
|
|
|
|
inherit (builtins) attrNames filter readDir;
|
|
|
|
|
|
|
|
protoFileNames = filter (hasSuffix ".proto") (attrNames (readDir ./.));
|
|
|
|
protoFiles = map (f: ./. + ("/" + f)) protoFileNames;
|
|
|
|
in
|
2023-07-13 23:12:01 +02:00
|
|
|
depot.nix.sparseTree {
|
|
|
|
name = "tvix-store-protos";
|
|
|
|
root = depot.path.origSrc;
|
|
|
|
paths = protoFiles;
|
|
|
|
}
|