summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorjahway603 <jahway603@protonmail.com>2022-03-21 12:39:17 -0400
committerjahway603 <jahway603@protonmail.com>2022-03-21 12:39:17 -0400
commit021d10cde0abcb88a55cfa5d90af581e97104cd0 (patch)
tree77bfad8c1e7e0a93706b275ae53105f0e009bea5 /doc
parent648e29a94f8c3f89933a44aeb2a43d2eb2a71cd9 (diff)
downloadnixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar.gz
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar.bz2
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar.lz
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar.xz
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.tar.zst
nixpkgs-021d10cde0abcb88a55cfa5d90af581e97104cd0.zip
added fetchFromGitea to docs
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/fetchers.chapter.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/builders/fetchers.chapter.md b/doc/builders/fetchers.chapter.md
index 28388ba685d..d9f22b06282 100644
--- a/doc/builders/fetchers.chapter.md
+++ b/doc/builders/fetchers.chapter.md
@@ -72,6 +72,10 @@ Used with Mercurial. Expects `url`, `rev`, and `sha256`.
 
 A number of fetcher functions wrap part of `fetchurl` and `fetchzip`. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below.
 
+## `fetchFromGitea` {#fetchfromgitea}
+
+`fetchFromGitea` expects five arguments. `domain` is the gitea server name. `owner` is a string corresponding to the Gitea user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every Gitea HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `sha256` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but `sha256` is currently preferred.
+
 ## `fetchFromGitHub` {#fetchfromgithub}
 
 `fetchFromGitHub` expects four arguments. `owner` is a string corresponding to the GitHub user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `sha256` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but `sha256` is currently preferred.