Update flake input to specific revision

Is there a way to update a flake input to a specific revision, rather than just the latest revision? I know that I can do nix flake update --update-input nixpkgs, but is there something like nix-flake update --update-input --commit=<rev> nixpkgs? Thanks!

2 Likes

I figured this out. You can use --override-input for this. E.g.

nix flake update --override-input nixpkgs github:NixOS/nixpkgs/<rev>
9 Likes