about summary refs log tree commit diff
path: root/third_party/gitignoreSource/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gitignoreSource/default.nix')
-rw-r--r--third_party/gitignoreSource/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/gitignoreSource/default.nix b/third_party/gitignoreSource/default.nix
new file mode 100644
index 000000000000..8bdd974e8dbe
--- /dev/null
+++ b/third_party/gitignoreSource/default.nix
@@ -0,0 +1,18 @@
+{ pkgs, ... }:
+
+let
+  gitignoreNix = import (pkgs.fetchFromGitHub {
+    owner = "hercules-ci";
+    repo = "gitignore";
+    rev = "f9e996052b5af4032fe6150bba4a6fe4f7b9d698";
+    sha256 = "0jrh5ghisaqdd0vldbywags20m2cxpkbbk5jjjmwaw0gr8nhsafv";
+  }) { inherit (pkgs) lib; };
+
+in {
+  __functor = _: gitignoreNix.gitignoreSource;
+
+  # expose extra functions here
+  inherit (gitignoreNix)
+    gitignoreFilter
+    ;
+}