forked from lix-project/lix
Remove computed-derivations
experimental feature
We don't need it yet.
This commit is contained in:
parent
8735f55dec
commit
279ecf7cde
6 changed files with 1 additions and 10 deletions
|
@ -1,4 +1,3 @@
|
||||||
# Release X.Y (202?-??-??)
|
# Release X.Y (202?-??-??)
|
||||||
|
|
||||||
* Add experimental *indexed store derivations* installable syntax, part of the
|
* Add *indexed store derivations* installable syntax.
|
||||||
the `computed-derivations` experimental feature.
|
|
||||||
|
|
|
@ -814,7 +814,6 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
||||||
result.push_back(std::make_shared<InstallableStorePath>(
|
result.push_back(std::make_shared<InstallableStorePath>(
|
||||||
store,
|
store,
|
||||||
DerivedPath::Built::parse(*store, s.substr(0, found), s.substr(found + 1))));
|
DerivedPath::Built::parse(*store, s.substr(0, found), s.substr(found + 1))));
|
||||||
settings.requireExperimentalFeature(Xp::ComputedDerivations);
|
|
||||||
continue;
|
continue;
|
||||||
} catch (BadStorePath &) {
|
} catch (BadStorePath &) {
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ std::map<ExperimentalFeature, std::string> stringifiedXpFeatures = {
|
||||||
{ Xp::NoUrlLiterals, "no-url-literals" },
|
{ Xp::NoUrlLiterals, "no-url-literals" },
|
||||||
{ Xp::FetchClosure, "fetch-closure" },
|
{ Xp::FetchClosure, "fetch-closure" },
|
||||||
{ Xp::ReplFlake, "repl-flake" },
|
{ Xp::ReplFlake, "repl-flake" },
|
||||||
{ Xp::ComputedDerivations, "computed-derivations" },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::optional<ExperimentalFeature> parseExperimentalFeature(const std::string_view & name)
|
const std::optional<ExperimentalFeature> parseExperimentalFeature(const std::string_view & name)
|
||||||
|
|
|
@ -23,7 +23,6 @@ enum struct ExperimentalFeature
|
||||||
NoUrlLiterals,
|
NoUrlLiterals,
|
||||||
FetchClosure,
|
FetchClosure,
|
||||||
ReplFlake,
|
ReplFlake,
|
||||||
ComputedDerivations, // RFC 92
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -132,8 +132,6 @@ the Nix store. Here are the recognised types of installables:
|
||||||
|
|
||||||
* **Indexed store derivations**: `/nix/store/p7gp6lxdg32h4ka1q398wd9r2zkbbz2v-hello-2.10.drv^out`
|
* **Indexed store derivations**: `/nix/store/p7gp6lxdg32h4ka1q398wd9r2zkbbz2v-hello-2.10.drv^out`
|
||||||
|
|
||||||
*(Experimental, part of by the `computed-derivations` experimental feature.)*
|
|
||||||
|
|
||||||
Store derivations can be indexed with a non-empty comma-separated list
|
Store derivations can be indexed with a non-empty comma-separated list
|
||||||
of specific output names, or `*` meaning all ouptuts. This allows
|
of specific output names, or `*` meaning all ouptuts. This allows
|
||||||
finer control versus just specifying a derivation (without
|
finer control versus just specifying a derivation (without
|
||||||
|
|
|
@ -2,9 +2,6 @@ source common.sh
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
enableFeatures "computed-derivations"
|
|
||||||
restartDaemon
|
|
||||||
|
|
||||||
drv=$(nix eval -f multiple-outputs.nix --raw a.drvPath)
|
drv=$(nix eval -f multiple-outputs.nix --raw a.drvPath)
|
||||||
if nix build "$drv^not-an-output" --no-link --json; then
|
if nix build "$drv^not-an-output" --no-link --json; then
|
||||||
fail "'not-an-output' should fail to build"
|
fail "'not-an-output' should fail to build"
|
||||||
|
|
Loading…
Reference in a new issue