nix shell
启动一个包含指定软件包的交互式 Shell 环境。 另请参阅:
nix-shell,nix flake。 更多信息:https://manned.org/nix3-shell。
- 从
nixpkgs中选取部分软件包启动交互式 Shell:
nix shell
- 使用旧版
nixpkgs(21.05)中的软件包启动 Shell:
nix shell
- 从当前目录的 flake 使用“默认软件包”启动 Shell(若发生构建则显示日志):
nix shell -L
- 使用 GitHub 上 flake 中的软件包启动 Shell:
nix shell
- 在含指定软件包的 Shell 环境中运行命令:
nix shell -c
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
