summaryrefslogtreecommitdiff
path: root/home/pkgs/gitignore/default.nix
blob: a77083f7862ad63f03d7ada62eeb518835807624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs }:

let
  fetch-gitignore = module: sha256:
    let url = "https://www.toptal.com/developers/gitignore/api/" + module;
        name = module + ".gitignore";
    in pkgs.fetchurl { inherit url sha256 name; };
in {
  emacs = fetch-gitignore "emacs"
    "sha256:34LaJsGa5fFSMjE7l8JgQAmH8f07jcQmsaOdPVctHMk=";
  linux = fetch-gitignore "linux"
    "sha256:Az39kpxJ1pG0T+3KUwx217+f+L8FQEWzwvRFSty8cJU=";
  direnv = fetch-gitignore "direnv"
    "sha256:CK47JLrsjf9yyjGAUfhjxLns0r1jDYgSBsp6LN0Yut8=";
  fetcher = fetch-gitignore;
}