summaryrefslogtreecommitdiff
path: root/pkgs/gitignore
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-12 18:39:54 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-15 22:13:57 +0100
commit365a7368718fc52964eb487058a34c7a124e6989 (patch)
tree2f9e0fe71b2edebd0a695d69025430b558da7b74 /pkgs/gitignore
parent6ea803da80558e269564c99070e92e285cf977ff (diff)
add pkgs
Diffstat (limited to 'pkgs/gitignore')
-rw-r--r--pkgs/gitignore/default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/gitignore/default.nix b/pkgs/gitignore/default.nix
new file mode 100644
index 0000000..fbf2d2e
--- /dev/null
+++ b/pkgs/gitignore/default.nix
@@ -0,0 +1,16 @@
+{ fetchurl }:
+
+let
+ fetch-gitignore = module: sha256:
+ let url = "https://www.toptal.com/developers/gitignore/api/" + module;
+ name = module + ".gitignore";
+ in fetchurl { inherit url sha256 name; };
+in {
+ emacsGitignore = fetch-gitignore "emacs"
+ "sha256:34LaJsGa5fFSMjE7l8JgQAmH8f07jcQmsaOdPVctHMk=";
+ linuxGitignore = fetch-gitignore "linux"
+ "sha256:Az39kpxJ1pG0T+3KUwx217+f+L8FQEWzwvRFSty8cJU=";
+ direnvGitignore = fetch-gitignore "direnv"
+ "sha256:CK47JLrsjf9yyjGAUfhjxLns0r1jDYgSBsp6LN0Yut8=";
+ fetcherGitignore = fetch-gitignore;
+}