Update single flake input

Up until the most recent nixUnstable version there was a command nix flake update --update-input input_name which updated just a single flake input.
With the latest nixUnstable such command does nothing.

I’ve found just nix flake update <flake_url> and calling it line nix flake update github:numtide/flake-utils also does nothing. Is there still an ability to update a single flake input?

2 Likes

nix flake lock --update-input <foo>. The behaviour changed here.

7 Likes

BTW, I think something like nix flake update --input <foo> would have been a more intuitive solution, rather than moving this to another sub-command.

Or alternatively, a nix flake update --all <flake-url> flag to toggle the current behaviour, and by default expect an input: nix flake update <foo> <flake-url>.

6 Likes