aboutsummaryrefslogtreecommitdiff
path: root/src/nix/bundle.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-02-17 17:32:10 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-02-17 17:32:10 +0100
commit13897afbe6cf7ef8013c0c94109696bb7b13d0c0 (patch)
tree62274775ca7fee6dfa1dcddce197c0cf71312006 /src/nix/bundle.cc
parentf33878b6562c746d5865a86e64f02c75feaf5b3e (diff)
Throw an error if --arg / --argstr is used with a flake
Fixes #3949.
Diffstat (limited to 'src/nix/bundle.cc')
-rw-r--r--src/nix/bundle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/bundle.cc b/src/nix/bundle.cc
index 1789e4598..48f4eb6e3 100644
--- a/src/nix/bundle.cc
+++ b/src/nix/bundle.cc
@@ -74,7 +74,7 @@ struct CmdBundle : InstallableCommand
auto [bundlerFlakeRef, bundlerName] = parseFlakeRefWithFragment(bundler, absPath("."));
const flake::LockFlags lockFlags{ .writeLockFile = false };
- auto bundler = InstallableFlake(
+ auto bundler = InstallableFlake(this,
evalState, std::move(bundlerFlakeRef),
Strings{bundlerName == "" ? "defaultBundler" : bundlerName},
Strings({"bundlers."}), lockFlags);