nix-shell
Open a shell with dependencies from a Nix expression or flake.
Syntax
$nix-shell [OPTIONS] [FILE]
Examples
Examples
$nix-shell
Examples
$nix-shell -p python310
Examples
$nix-shell shell.nix
Typical use cases
nix-shell -p gcc gdb
nix-shell
nix shell nixpkgs#hello
Note
Starts a shell with defined dependencies. For reproducible development environments.
Export