Say if I did
nix shell nixpkgs#hello right now, I’d get version 2 of hello.
Say I have flake.nix and its respective flake.lock. Say that nixpkgs is locked to a version such that, if I ran
nix shell nixpkgs#hello at the time that version was the latest, I’d get hello version 1.
Is there a way, without modifying the flake itself, to run
nix shell nixpkgs#hello in a way to tell it to use nixpkgs not from the registry (which brings hello version 2), but from the flake (which brings hello version 1)?
In other words, is there a way to run
nix shell so that it uses the locked dependencies from flake.lock instead of from the respective registries?