2025-05-08 12:26:01 -06:00
|
|
|
# nix develop
|
|
|
|
|
|
|
|
|
|
> Run a Bash shell that provides the build environment of a derivation.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-develop.html>.
|
2025-05-08 12:26:01 -06:00
|
|
|
|
|
|
|
|
- Start a shell with all dependencies of a package from nixpkgs available:
|
|
|
|
|
|
|
|
|
|
`nix develop {{nixpkgs#pkg}}`
|
|
|
|
|
|
|
|
|
|
- Start a development shell for the default package in a flake in the current directory:
|
|
|
|
|
|
|
|
|
|
`nix develop`
|
|
|
|
|
|
|
|
|
|
- In that shell, configure and build the sources:
|
|
|
|
|
|
|
|
|
|
`configurePhase; buildPhase`
|