diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:24:33 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:24:33 +0100 |
commit | 559a8c44c3b59c046f4bb0bf049583ff234a095e (patch) | |
tree | 89681485d3cbfee39becc739b460807cb6c36d26 /src/libstore/binary-cache-store.hh | |
parent | 7ff1dca1fad24d0e8dd83172397d952ef6cb4de5 (diff) |
Merge pull request #6258 from obsidiansystems/gcc-bug-ergonomics
Remove bug-avoiding `StoreConfig *` casts for settings
(cherry picked from commit e3febfcd532adb23ca05ac465a2b907d6f1a3529)
Change-Id: Ifeae276582fdbc781a38581df9de3da67a7e7bf9
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index 49f271d24..218a888e3 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -17,28 +17,28 @@ struct BinaryCacheStoreConfig : virtual StoreConfig { using StoreConfig::StoreConfig; - const Setting<std::string> compression{(StoreConfig*) this, "xz", "compression", + const Setting<std::string> compression{this, "xz", "compression", "NAR compression method (`xz`, `bzip2`, `gzip`, `zstd`, or `none`)."}; - const Setting<bool> writeNARListing{(StoreConfig*) this, false, "write-nar-listing", + const Setting<bool> writeNARListing{this, false, "write-nar-listing", "Whether to write a JSON file that lists the files in each NAR."}; - const Setting<bool> writeDebugInfo{(StoreConfig*) this, false, "index-debug-info", + const Setting<bool> writeDebugInfo{this, false, "index-debug-info", R"( Whether to index DWARF debug info files by build ID. This allows [`dwarffs`](https://github.com/edolstra/dwarffs) to fetch debug info on demand )"}; - const Setting<Path> secretKeyFile{(StoreConfig*) this, "", "secret-key", + const Setting<Path> secretKeyFile{this, "", "secret-key", "Path to the secret key used to sign the binary cache."}; - const Setting<Path> localNarCache{(StoreConfig*) this, "", "local-nar-cache", + const Setting<Path> localNarCache{this, "", "local-nar-cache", "Path to a local cache of NARs fetched from this binary cache, used by commands such as `nix store cat`."}; - const Setting<bool> parallelCompression{(StoreConfig*) this, false, "parallel-compression", + const Setting<bool> parallelCompression{this, false, "parallel-compression", "Enable multi-threaded compression of NARs. This is currently only available for `xz` and `zstd`."}; - const Setting<int> compressionLevel{(StoreConfig*) this, -1, "compression-level", + const Setting<int> compressionLevel{this, -1, "compression-level", R"( The *preset level* to be used when compressing NARs. The meaning and accepted values depend on the compression method selected. |