diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2024-08-19T12·02+0300 |
---|---|---|
committer | Ilan Joselevich <personal@ilanjoselevich.com> | 2024-08-19T12·14+0000 |
commit | 7b1acc5c16967b72f8a3aef7b47967808329744f (patch) | |
tree | b6f41f7e6df4d6a0f3ff3098a2053bc7d847ac84 /third_party/gitignoreSource | |
parent | 9aa1c2dd197a2c93e633bddd010dc76814e784fc (diff) |
feat(third_party/gitignoreSource): Get gitignore-nix from sources (niv) r/8526
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>
Diffstat (limited to 'third_party/gitignoreSource')
-rw-r--r-- | third_party/gitignoreSource/default.nix | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/third_party/gitignoreSource/default.nix b/third_party/gitignoreSource/default.nix index 150de7c990e4..78a7414ed3ad 100644 --- a/third_party/gitignoreSource/default.nix +++ b/third_party/gitignoreSource/default.nix @@ -1,15 +1,7 @@ -{ pkgs, ... }: +{ depot, lib, ... }: let - gitignoreNix = import - (pkgs.fetchFromGitHub { - owner = "hercules-ci"; - repo = "gitignore"; - rev = "f9e996052b5af4032fe6150bba4a6fe4f7b9d698"; - sha256 = "0jrh5ghisaqdd0vldbywags20m2cxpkbbk5jjjmwaw0gr8nhsafv"; - }) - { inherit (pkgs) lib; }; - + gitignoreNix = import depot.third_party.sources."gitignore.nix" { inherit lib; }; in { __functor = _: gitignoreNix.gitignoreSource; |