forked from lix-project/lix
Apply suggestions from code review
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
32d72b1696
commit
bdeeffff96
|
@ -17,11 +17,11 @@ constexpr std::array<ExperimentalFeatureDetails, 11> xpFeatureDetails = {{
|
||||||
.tag = Xp::CaDerivations,
|
.tag = Xp::CaDerivations,
|
||||||
.name = "ca-derivations",
|
.name = "ca-derivations",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows derivations to be content-addressed in order to prevent rebuilds
|
Allow derivations to be content-addressed in order to prevent rebuilds
|
||||||
when changes to the derivation do not result in changes to the
|
when changes to the derivation do not result in changes to the
|
||||||
derivation's output. See
|
derivation's output. See
|
||||||
[__contentAddressed](../language/advanced-attributes.md#adv-attr-__contentAddressed)
|
[__contentAddressed](@docroot@/language/advanced-attributes.md#adv-attr-__contentAddressed)
|
||||||
for more info.
|
for details.
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -37,18 +37,16 @@ constexpr std::array<ExperimentalFeatureDetails, 11> xpFeatureDetails = {{
|
||||||
.tag = Xp::Flakes,
|
.tag = Xp::Flakes,
|
||||||
.name = "flakes",
|
.name = "flakes",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows for derivations to be packaged in flakes. See the manual entry for
|
Enable flakes. See the manual entry for
|
||||||
[`nix flake`](../command-ref/new-cli/nix3-flake.md) or this [detailed
|
[`nix flake`](../command-ref/new-cli/nix3-flake.md) for details.
|
||||||
introduction](https://www.tweag.io/blog/2020-05-25-flakes/) for more info.
|
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.tag = Xp::NixCommand,
|
.tag = Xp::NixCommand,
|
||||||
.name = "nix-command",
|
.name = "nix-command",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows the usage of the new `nix` CLI subcommands, such as `nix build`, `nix
|
Enable the new `nix` subcommands. See the manual on
|
||||||
develop`, `nix run`, etc. See the manual for
|
[`nix`](@docroot@/command-ref/new-cli/nix.md) for details.
|
||||||
[`nix`](../command-ref/new-cli/nix.md) for more info.
|
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -73,17 +71,14 @@ constexpr std::array<ExperimentalFeatureDetails, 11> xpFeatureDetails = {{
|
||||||
.tag = Xp::FetchClosure,
|
.tag = Xp::FetchClosure,
|
||||||
.name = "fetch-closure",
|
.name = "fetch-closure",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Enables the use of the `fetchClosure` function in the standard library. See
|
Enable the use of the [`fetchClosure`](@docroot@/language/builtins.md#builtins-fetchClosure) built-in function in the Nix language.
|
||||||
the docs for [`fetchClosure`](../language/builtins.md#builtins-fetchClosure)
|
|
||||||
for more info.
|
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.tag = Xp::ReplFlake,
|
.tag = Xp::ReplFlake,
|
||||||
.name = "repl-flake",
|
.name = "repl-flake",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows the user to enter a Nix REPL within a flake, e.g. `nix repl nixpkgs`
|
Allow passing [installables](@docroot@/command-ref/new-cli/nix.md#installables) to `nix repl`, making its interface consistent with the other experimental commands.
|
||||||
or `nix repl .#foo`.
|
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -91,7 +86,7 @@ constexpr std::array<ExperimentalFeatureDetails, 11> xpFeatureDetails = {{
|
||||||
.name = "auto-allocate-uids",
|
.name = "auto-allocate-uids",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows Nix to automatically pick UIDs for builds, rather than creating
|
Allows Nix to automatically pick UIDs for builds, rather than creating
|
||||||
`nixbld*` user accounts. See [here](#conf-auto-allocate-uids) for more info.
|
`nixbld*` user accounts. See the [`auto-allocate-uids`](#conf-auto-allocate-uids) setting for details.
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -99,15 +94,15 @@ constexpr std::array<ExperimentalFeatureDetails, 11> xpFeatureDetails = {{
|
||||||
.name = "cgroups",
|
.name = "cgroups",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Allows Nix to execute builds inside cgroups. See
|
Allows Nix to execute builds inside cgroups. See
|
||||||
[`use-cgroups`](#conf-use-cgroups) for more info.
|
the [`use-cgroups`](#conf-use-cgroups) setting for details.
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.tag = Xp::DiscardReferences,
|
.tag = Xp::DiscardReferences,
|
||||||
.name = "discard-references",
|
.name = "discard-references",
|
||||||
.description = R"(
|
.description = R"(
|
||||||
Enables the use of the `unsafeDiscardReferences` attribute in derivations
|
Allow the use of the [`unsafeDiscardReferences`](@docroot@/language/advanced-attributes.html#adv-attr-unsafeDiscardReferences) attribute in derivations
|
||||||
that use structured attributes. This disables scanning of outputs for
|
that use [structured attributes](@docroot@/language/advanced-attributes.html#adv-attr-structuredAttrs). This disables scanning of outputs for
|
||||||
runtime dependencies.
|
runtime dependencies.
|
||||||
)",
|
)",
|
||||||
},
|
},
|
||||||
|
@ -147,8 +142,14 @@ std::string_view showExperimentalFeature(const ExperimentalFeature tag)
|
||||||
|
|
||||||
std::string getExperimentalFeaturesList() {
|
std::string getExperimentalFeaturesList() {
|
||||||
std::string experimentalFeaturesList = R"(
|
std::string experimentalFeaturesList = R"(
|
||||||
Experimental Nix features to enable.
|
Experimental features that can be enabled.
|
||||||
Current experimental features are the following:
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
Experimental features available:
|
||||||
|
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue