LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install nix-bin
copy
sudo dnf install nix
copy
sudo pacman -S nix
copy
sudo apk add nix
copy
sudo zypper install nix
copy
nix profile install nixpkgs#nix
copy

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)

Copied to clipboard
Kai