aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authoramesgen <amesgen@amesgen.de>2022-12-06 00:16:26 +0100
committerAlexander Esgen <alexander.esgen@tweag.io>2022-12-07 12:38:18 +0100
commita5ab253e8f9ac5010937f8b1f1edee3e29f5c076 (patch)
tree19048c31d362e4399e25749505d7575a159173d7 /src/nix
parent105677140dc3674977381a3c3f803c31999d0c19 (diff)
Mention `host` parameter for GitHub
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/flake.md b/src/nix/flake.md
index 039215b72..c7caa4a56 100644
--- a/src/nix/flake.md
+++ b/src/nix/flake.md
@@ -216,11 +216,15 @@ Currently the `type` attribute can be one of the following:
commit hash (`rev`). Note that unlike Git, GitHub allows fetching by
commit hash without specifying a branch or tag.
+ You can also specify `host` as a parameter, to point to a custom GitHub
+ Enterprise server.
+
Some examples:
* `github:edolstra/dwarffs`
* `github:edolstra/dwarffs/unstable`
* `github:edolstra/dwarffs/d3f2baba8f425779026c6ec04021b2e927f61e31`
+ * `github:internal/project?host=company-github.example.org`
* `gitlab`: Similar to `github`, is a more efficient way to fetch
GitLab repositories. The following attributes are required: