You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, this has no effect. This becomes relevant only once `shallow` cloning is disabled.
335
328
336
-
- `"git"`
329
+
Whether to fetch all references (eg. branches and tags) of the repository.
330
+
With this argument being true, it's possible to load a `rev` from *any* `ref`.
331
+
(Without setting this option, only `rev`s from the specified `ref` are supported).
337
332
338
-
Fetch a Git tree and copy it to the Nix store.
339
-
This is similar to [`builtins.fetchGit`](@docroot@/language/builtins.md#builtins-fetchGit).
333
+
Default: `false`
340
334
341
-
- `url` (String, required)
335
+
- `lastModified` (Integer, optional)
342
336
343
-
The URL formats supported are the same as for Git itself.
337
+
Unix timestamp of the fetched commit.
344
338
345
-
> **Example**
346
-
>
347
-
> ```nix
348
-
> fetchTree {
349
-
> type = "git";
350
-
> url = "git@github.com:NixOS/nixpkgs.git";
351
-
> }
352
-
> ```
339
+
If set, pass through the value to the output attribute set.
340
+
Otherwise, generated from the fetched Git tree.
353
341
354
-
> **Note**
355
-
>
356
-
> If the URL points to a local directory, and no `ref` or `rev` is given, Nix only considers files added to the Git index, as listed by `git ls-files` but use the *current file contents* of the Git working directory.
By default, this has no effect. This becomes relevant only once `shallow` cloning is disabled.
394
-
395
-
Whether to fetch all references (eg. branches and tags) of the repository.
396
-
With this argument being true, it's possible to load a `rev` from *any* `ref`.
397
-
(Without setting this option, only `rev`s from the specified `ref` are supported).
382
+
- `url` (String, required)
398
383
399
-
Default: `false`
384
+
The URL formats supported are the same as for Git itself.
400
385
401
-
- `lastModified` (Integer, optional)
386
+
> **Example**
387
+
>
388
+
> ```nix
389
+
> fetchTree {
390
+
> type = "git";
391
+
> url = "git@github.com:NixOS/nixpkgs.git";
392
+
> }
393
+
> ```
402
394
403
-
Unix timestamp of the fetched commit.
395
+
> **Note**
396
+
>
397
+
> If the URL points to a local directory, and no `ref` or `rev` is given, Nix only considers files added to the Git index, as listed by `git ls-files` but use the *current file contents* of the Git working directory.
404
398
405
-
If set, pass through the value to the output attribute set.
406
-
Otherwise, generated from the fetched Git tree.
399
+
- `"tarball"`
407
400
408
-
- `revCount` (Integer, optional)
401
+
Download a tar archive and extract it into the Nix store.
402
+
This has the same underlying implementation as [`builtins.fetchTarball`](@docroot@/language/builtins.md#builtins-fetchTarball)
409
403
410
-
Number of revisions in the history of the Git repository before the fetched commit.
404
+
- `url` (String, required)
411
405
412
-
If set, pass through the value to the output attribute set.
0 commit comments