diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-03-16 16:53:39 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-03-16 16:53:39 +0100 |
commit | 77f5d171e17294ebb017a386d4408bf4613dfed7 (patch) | |
tree | 1eb7576b8d70a4581278c37c01f74a2566f0217a /src/libcmd/installables.cc | |
parent | 338f2710580b334a754fad28b88c5cb137c83352 (diff) |
--override-input: Imply --no-write-lock-file
Fixes #3779.
Diffstat (limited to 'src/libcmd/installables.cc')
-rw-r--r-- | src/libcmd/installables.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 7102f5a1a..898e642a5 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -111,10 +111,11 @@ MixFlakeOptions::MixFlakeOptions() addFlag({ .longName = "override-input", - .description = "Override a specific flake input (e.g. `dwarffs/nixpkgs`).", + .description = "Override a specific flake input (e.g. `dwarffs/nixpkgs`). This implies `--no-write-lock-file`.", .category = category, .labels = {"input-path", "flake-url"}, .handler = {[&](std::string inputPath, std::string flakeRef) { + lockFlags.writeLockFile = false; lockFlags.inputOverrides.insert_or_assign( flake::parseInputPath(inputPath), parseFlakeRef(flakeRef, absPath("."))); |