7b1acc5c16
It's easier to implement readTree/depot polyfills for gitignoreSource when it's imported from third_party.sources, rather than in a file at //third_party.gitignoreSource. Change-Id: I1323f932bd0feeb2c50ccc76397a80e035842992 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12248 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
13 lines
248 B
Nix
13 lines
248 B
Nix
{ depot, lib, ... }:
|
|
|
|
let
|
|
gitignoreNix = import depot.third_party.sources."gitignore.nix" { inherit lib; };
|
|
in
|
|
{
|
|
__functor = _: gitignoreNix.gitignoreSource;
|
|
|
|
# expose extra functions here
|
|
inherit (gitignoreNix)
|
|
gitignoreFilter
|
|
;
|
|
}
|