mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-21 15:43:09 +01:00
docs(other-usage-of-flakes/inputs): add tag and submodules input usage (#184)
This commit is contained in:
parent
869cea884c
commit
5b9b396ef7
@ -11,6 +11,10 @@ of the current flake. There are various types of inputs, as shown in the example
|
||||
nixpkgs.url = "github:Mic92/nixpkgs/master";
|
||||
# Git URL, applicable to any Git repository using the https/ssh protocol.
|
||||
git-example.url = "git+https://git.somehost.tld/user/path?ref=branch";
|
||||
# Git URL by tag, applicable to any Git repository using the https/ssh protocol.
|
||||
git-example-tag.url = "git+https://git.somehost.tld/user/path?tag=x.y.x";
|
||||
# Git URL with submodules, applicable to any Git repository using the https/ssh protocol.
|
||||
git-example-submodule.url = "git+https://git.somehost.tld/user/path?submodules=1";
|
||||
# Archive File URL, needed in case your input use LFS.
|
||||
# Regular git input doesn't support LFS yet.
|
||||
git-example-lfs.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz";
|
||||
|
Loading…
Reference in New Issue
Block a user