diff options
Diffstat (limited to 'pkgs/static/gitignore')
| -rw-r--r-- | pkgs/static/gitignore/default.nix | 12 | ||||
| -rw-r--r-- | pkgs/static/gitignore/sources.json | 6 |
2 files changed, 18 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 diff --git a/pkgs/static/gitignore/sources.json b/pkgs/static/gitignore/sources.json new file mode 100644 index 0000000..a46ff9e --- /dev/null +++ b/pkgs/static/gitignore/sources.json @@ -0,0 +1,6 @@ +{ + "direnv": "CK47JLrsjf9yyjGAUfhjxLns0r1jDYgSBsp6LN0Yut8=", + "emacs" : "34LaJsGa5fFSMjE7l8JgQAmH8f07jcQmsaOdPVctHMk=", + "latex" : "yumKOkYA44Mnfm7giSDWKFEGSmP8/1xVbcSQCfc5uBA=", + "linux" : "Az39kpxJ1pG0T+3KUwx217+f+L8FQEWzwvRFSty8cJU=" +} |
