nix-develop
enters a development shell
TLDR
Enter development shell
$ nix develop
Develop with flakecopy
$ nix develop [path/to/flake]
Run command in shellcopy
$ nix develop --command [bash -c "make"]
Develop specific outputcopy
$ nix develop [.#devShells.default]
Develop with impurecopy
$ nix develop --impure
Build firstcopy
$ nix develop --build
copy
SYNOPSIS
nix develop [options] [installable]
DESCRIPTION
nix develop enters a development shell. It provides build dependencies.The tool sets up environment variables. Based on flake devShell or shell.nix.
PARAMETERS
INSTALLABLE
Flake reference or path.--command CMD
Run command in shell.--impure
Allow impure evaluation.--build
Build before entering.--help
Display help information.
CAVEATS
Requires flakes enabled. Or shell.nix compatibility. Environment isolation.
HISTORY
nix develop is part of Nix 2.4+ flakes, providing reproducible development environments.