aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-05 14:48:49 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-05 14:48:49 +0100
commit9d7fb62db6e8ee6da7f8dbc5f5509271dc12f2ba (patch)
tree300a38d1bb67fb80b297b3d05e8e1425547fd2f8 /src/nix
parente2213d77a22a1d3d5d17167eb2760352760405e8 (diff)
Add option --commit-lock-file
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/installables.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 545b5e839..752a1466f 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -40,6 +40,11 @@ MixFlakeOptions::MixFlakeOptions()
.set(&lockFlags.useRegistries, false);
mkFlag()
+ .longName("commit-lock-file")
+ .description("commit changes to the lock file")
+ .set(&lockFlags.commitLockFile, true);
+
+ mkFlag()
.longName("update-input")
.description("update a specific flake input")
.label("input-path")