diff options
Diffstat (limited to 'pkgs/static/gitignore/default.nix')
| -rw-r--r-- | pkgs/static/gitignore/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/static/gitignore/default.nix b/pkgs/static/gitignore/default.nix new file mode 100644 index 0000000..ac825a5 --- /dev/null +++ b/pkgs/static/gitignore/default.nix @@ -0,0 +1,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 |
