From 9194ace589320191b3fbee0444e15b4df97b2c27 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 8 Dec 2022 09:38:04 +0200 Subject: [PATCH] nix: run all operations with "--option extra-experimental-features 'no-url-literals'" --- ofborg/src/nix.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ofborg/src/nix.rs b/ofborg/src/nix.rs index 30ecfb6..fea8c74 100644 --- a/ofborg/src/nix.rs +++ b/ofborg/src/nix.rs @@ -56,10 +56,10 @@ impl Operation { fn args(&self, command: &mut Command) { match *self { Operation::Build => { - command.args(&["--no-out-link", "--keep-going"]); + command.args(&["--no-out-link", "--keep-going", "--option", "experimental-features", "no-url-literals"]); } Operation::QueryPackagesJson => { - command.args(&["--query", "--available", "--json"]); + command.args(&["--query", "--available", "--json", "--option", "experimental-features", "no-url-literals"]); } Operation::QueryPackagesOutputs => { command.args(&[ @@ -68,13 +68,16 @@ impl Operation { "--no-name", "--attr-path", "--out-path", + "--option", + "experimental-features", + "no-url-literals" ]); } Operation::NoOp { ref operation } => { operation.args(command); } Operation::Evaluate => { - command.args(&["--eval", "--strict", "--json"]); + command.args(&["--eval", "--strict", "--json", "--option", "experimental-features", "no-url-literals"]); } _ => (), };