mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix fetchTarball docs
This commit is contained in:
parent
7c18b4d060
commit
71865dee2d
1 changed files with 4 additions and 4 deletions
|
@ -560,10 +560,10 @@ static RegisterPrimOp primop_fetchTarball({
|
||||||
Download the specified URL, unpack it and return the path of the
|
Download the specified URL, unpack it and return the path of the
|
||||||
unpacked tree. The file must be a tape archive (`.tar`) compressed
|
unpacked tree. The file must be a tape archive (`.tar`) compressed
|
||||||
with `gzip`, `bzip2` or `xz`. If the tarball consists of a
|
with `gzip`, `bzip2` or `xz`. If the tarball consists of a
|
||||||
single directory or non-executable file, then the top-level path
|
single directory, then the top-level path component of the files
|
||||||
component of the files in the tarball is removed. The typical
|
in the tarball is removed. The typical use of the function is to
|
||||||
use of the function is to obtain external Nix expression
|
obtain external Nix expression dependencies, such as a
|
||||||
dependencies, such as a particular version of Nixpkgs, e.g.
|
particular version of Nixpkgs, e.g.
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-14.12.tar.gz) {};
|
with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-14.12.tar.gz) {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue