mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
mkBinaryCache: support different compression methods: xz (default), zstd, none
This commit is contained in:
@@ -11,6 +11,14 @@ It can also be a convenient way to make some Nix packages available inside a con
|
||||
`rootPaths` must be a list of derivations.
|
||||
The transitive closure of these derivations' outputs will be copied into the cache.
|
||||
|
||||
## Optional arguments {#sec-pkgs-binary-cache-arguments}
|
||||
|
||||
`compression` (`"none"` or `"xz"` or `"zstd"`; _optional_)
|
||||
|
||||
: The compression algorithm to use.
|
||||
|
||||
_Default value:_ `zstd`.
|
||||
|
||||
::: {.note}
|
||||
This function is meant for advanced use cases.
|
||||
The more idiomatic way to work with flat-file binary caches is via the [nix-copy-closure](https://nixos.org/manual/nix/stable/command-ref/nix-copy-closure.html) command.
|
||||
|
||||
Reference in New Issue
Block a user