Linux command
nix-develop 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Enter development shell
nix develop
Develop with flake
nix develop [path/to/flake]
Run command in shell
nix develop --command [bash -c "make"]
Develop specific output
nix develop [.#devShells.default]
Develop with impure
nix develop --impure
Build first
nix develop --build
说明
nix develop enters a development shell. It provides build dependencies. The tool sets up environment variables. Based on flake devShell or shell.nix.
参数
- --command _CMD_
- Run command in shell.
- --impure
- Allow impure evaluation.
- --build
- Build before entering.
- --help
- Display help information.
FAQ
What is the nix-develop command used for?
nix develop enters a development shell. It provides build dependencies. The tool sets up environment variables. Based on flake devShell or shell.nix.
How do I run a basic nix-develop example?
Run `nix develop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --command _CMD_ do in nix-develop?
Run command in shell.