使用 Nix 作為開發環境的一個常見痛點是,每次更新依賴項時都需要完全重構並重新進入開發 shell。nix develop --redirect <flake> <directory> 命令允許您向 shell 提供可變的依賴項,就像它是由 Nix 構建的一樣。
nix develop --redirect <flake> <directory>