summary refs log tree commit diff
path: root/pkgs/build-support/fetchgitea
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/fetchgitea')
-rw-r--r--pkgs/build-support/fetchgitea/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgitea/default.nix b/pkgs/build-support/fetchgitea/default.nix
new file mode 100644
index 00000000000..79804588cfe
--- /dev/null
+++ b/pkgs/build-support/fetchgitea/default.nix
@@ -0,0 +1,7 @@
+# Gitea's URLs are compatible with GitHub
+
+{ lib, fetchFromGitHub }:
+
+{ domain, ... }@args:
+
+fetchFromGitHub ((removeAttrs args [ "domain" ]) // { githubBase = domain; })