mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-18 08:07:17 +02:00
Update fetchTree docs
This commit is contained in:
parent
06b686b62d
commit
b88950ec77
1 changed files with 5 additions and 5 deletions
|
@ -559,11 +559,11 @@ static RegisterPrimOp primop_fetchTarball({
|
||||||
.doc = R"(
|
.doc = R"(
|
||||||
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`. The top-level path component of the
|
with `gzip`, `bzip2` or `xz`. If the tarball consists of a
|
||||||
files in the tarball is removed, so it is best if the tarball
|
single directory or non-executable file, then the top-level path
|
||||||
contains a single directory at top level. The typical use of the
|
component of the files in the tarball is removed. The typical
|
||||||
function is to obtain external Nix expression dependencies, such as
|
use of the function is to obtain external Nix expression
|
||||||
a particular version of Nixpkgs, e.g.
|
dependencies, such as a 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
Reference in a new issue