···1111`rootPaths` must be a list of derivations.
1212The transitive closure of these derivations' outputs will be copied into the cache.
13131414+## Optional arguments {#sec-pkgs-binary-cache-arguments}
1515+1616+`compression` (`"none"` or `"xz"` or `"zstd"`; _optional_)
1717+1818+: The compression algorithm to use.
1919+2020+ _Default value:_ `zstd`.
2121+1422::: {.note}
1523This function is meant for advanced use cases.
1624The 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.