aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-29 21:01:34 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-29 21:04:28 +0100
commit26f895a26d37ec6049628fa835e20dfae5eb94dd (patch)
tree346863a05459c74bafcea95e0446c45c17bf581b /src/nix/command.hh
parentf68bed7f67d9acc13ebe38e6f5aa8a641f6e557d (diff)
Clean up the lock file handling flags
Added a flag --no-update-lock-file to barf if the lock file needs any changes. This is useful for CI systems if you're building a checkout. Fixes #2947. Renamed --no-save-lock-file to --no-write-lock-file. It is now a fatal error if the lock file needs changes but --no-write-lock-file is not given.
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r--src/nix/command.hh10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index eb44caf05..305ce5588 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -16,10 +16,6 @@ class EvalState;
struct Pos;
class Store;
-namespace flake {
-enum LockFileMode : unsigned int;
-}
-
/* A command that requires a Nix store. */
struct StoreCommand : virtual Command
{
@@ -42,15 +38,9 @@ struct EvalCommand : virtual StoreCommand, MixEvalArgs
struct MixFlakeOptions : virtual Args
{
- bool recreateLockFile = false;
- bool saveLockFile = true;
- bool useRegistries = true;
-
flake::LockFlags lockFlags;
MixFlakeOptions();
-
- flake::LockFileMode getLockFileMode();
};
struct SourceExprCommand : virtual Args, EvalCommand, MixFlakeOptions