summaryrefslogtreecommitdiff
path: root/pkgs/static/gitignore/default.nix
blob: ac825a5c2ad522f795628d74ca7f707a1e5e38c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ fetchurl, lib }:

let
  fetchGitignore = module: sha256:
    let
      url = "https://www.toptal.com/developers/gitignore/api/" + module;
      name = module + ".gitignore";
    in fetchurl { inherit url sha256 name; };
  sources = lib.importJSON ./sources.json;
in {
  fetcher = fetchGitignore;
} // builtins.mapAttrs fetchGitignore sources