docs(other-usage-of-flakes/inputs): add tag and submodules input usage (#184)

This commit is contained in:
kev 2024-08-12 21:16:34 -04:00 committed by GitHub
parent 869cea884c
commit 5b9b396ef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"; nixpkgs.url = "github:Mic92/nixpkgs/master";
# Git URL, applicable to any Git repository using the https/ssh protocol. # 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-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. # Archive File URL, needed in case your input use LFS.
# Regular git input doesn't support LFS yet. # Regular git input doesn't support LFS yet.
git-example-lfs.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz"; git-example-lfs.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz";