Use --extra-experimental-features as opposed to --experimental-features
This commit is contained in:
parent
d4dcf1c6e9
commit
695ec0c36f
4 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ in tools.makeTest {
|
|||
deployer.succeed("sed -i 's @nixpkgs@ path:${pkgs._inputs.nixpkgs.outPath}?narHash=${pkgs._inputs.nixpkgs.narHash} g' /tmp/bundle/flake.nix")
|
||||
|
||||
with subtest("Lock flake dependencies"):
|
||||
deployer.succeed("cd /tmp/bundle && nix --experimental-features \"nix-command flakes\" flake lock")
|
||||
deployer.succeed("cd /tmp/bundle && nix --extra-experimental-features \"nix-command flakes\" flake lock")
|
||||
|
||||
with subtest("Deploy with a plain flake without git"):
|
||||
deployer.succeed("cd /tmp/bundle && ${tools.colmenaExec} apply --on @target --evaluator ${evaluator}")
|
||||
|
|
|
@ -85,7 +85,7 @@ impl DrvSetEvaluator for NixEvalJobs {
|
|||
command.args(options.to_args());
|
||||
|
||||
if expression.requires_flakes() {
|
||||
command.args(&["--experimental-features", "flakes"]);
|
||||
command.args(&["--extra-experimental-features", "flakes"]);
|
||||
}
|
||||
|
||||
let mut child = command
|
||||
|
|
|
@ -88,7 +88,7 @@ impl FlakeMetadata {
|
|||
async fn resolve(flake: &str) -> ColmenaResult<Self> {
|
||||
let child = Command::new("nix")
|
||||
.args(&["flake", "metadata", "--json"])
|
||||
.args(&["--experimental-features", "nix-command flakes"])
|
||||
.args(&["--extra-experimental-features", "nix-command flakes"])
|
||||
.arg(flake)
|
||||
.stdout(Stdio::piped())
|
||||
.spawn()?;
|
||||
|
@ -110,7 +110,7 @@ impl FlakeMetadata {
|
|||
pub async fn lock_flake_quiet(uri: &str) -> ColmenaResult<()> {
|
||||
let status = Command::new("nix")
|
||||
.args(&["flake", "lock"])
|
||||
.args(&["--experimental-features", "nix-command flakes"])
|
||||
.args(&["--extra-experimental-features", "nix-command flakes"])
|
||||
.arg(uri)
|
||||
.stderr(Stdio::null())
|
||||
.status()
|
||||
|
|
|
@ -402,7 +402,7 @@ impl<'hive> NixInstantiate<'hive> {
|
|||
let mut command = Command::new("nix-instantiate");
|
||||
|
||||
if self.hive.is_flake() {
|
||||
command.args(&["--experimental-features", "flakes"]);
|
||||
command.args(&["--extra-experimental-features", "flakes"]);
|
||||
}
|
||||
|
||||
let mut full_expression = self.hive.get_base_expression();
|
||||
|
|
Loading…
Reference in a new issue