blob: 0ffdcac0418a6172105959fb4dbacfa859e23774 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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
depot.nix.sparseTree depot.path.origSrc protoFiles
|