diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-08-15 00:03:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 00:03:15 +0000 |
commit | 842c52c5ba1279add8651cac016e016518d42ee4 (patch) | |
tree | 32378c426930d9cc966e6032e3765ee513fabd98 /doc | |
parent | 7ef4d517f3687960738b931b4bae0f0de4b9d08c (diff) | |
parent | 1db41d0201d6f2e0387e5d900df7ddc3074d0886 (diff) | |
download | nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar.gz nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar.bz2 nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar.lz nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar.xz nixlib-842c52c5ba1279add8651cac016e016518d42ee4.tar.zst nixlib-842c52c5ba1279add8651cac016e016518d42ee4.zip |
Merge staging-next into staging
Diffstat (limited to 'doc')
-rw-r--r-- | doc/builders/fetchers.chapter.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/builders/fetchers.chapter.md b/doc/builders/fetchers.chapter.md index 947afe8e9fdb..12d8a5d887fd 100644 --- a/doc/builders/fetchers.chapter.md +++ b/doc/builders/fetchers.chapter.md @@ -91,7 +91,7 @@ Used with Git. Expects `url` to a Git repo, `rev`, and `sha256`. `rev` in this c Additionally, the following optional arguments can be given: `fetchSubmodules = true` makes `fetchgit` also fetch the submodules of a repository. If `deepClone` is set to true, the entire repository is cloned as opposing to just creating a shallow clone. `deepClone = true` also implies `leaveDotGit = true` which means that the `.git` directory of the clone won't be removed after checkout. -If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) and [git clone --filter](https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---filterltfilter-specgt) for more information: +If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) for more information: ```nix { stdenv, fetchgit }: @@ -101,8 +101,8 @@ stdenv.mkDerivation { src = fetchgit { url = "https://..."; sparseCheckout = '' - path/to/be/included - another/path + directory/to/be/included + another/directory ''; sha256 = "0000000000000000000000000000000000000000000000000000"; }; |