LinuxCommandLibrary

nix-develop

enters a development shell

TLDR

Enter development shell

$ nix develop
copy
Develop with flake
$ nix develop [path/to/flake]
copy
Run command in shell
$ nix develop --command [bash -c "make"]
copy
Develop specific output
$ nix develop [.#devShells.default]
copy
Develop with impure
$ nix develop --impure
copy
Build first
$ 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.

SEE ALSO

nix(1), nix-shell(1), direnv(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community