Start an interactive shell based on a Nix expression. More…
Start an interactive shell based on a Nix expression. More information: https://nixos.org/manual/nix/stable/#sec-nix-shell.
shell.nix
or default.nix
in the current directory:nix-shell
nix-shell --run "{{command}} {{command_arguments}}"
default.nix
in the current directory:nix-shell {{default.nix}}
nix-shell --packages {{package_name_1}} {{package_name_2}}
nix-shell --packages {{package_names}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}
#!-scripts
(see https://nixos.org/manual/nix/stable/#use-as-a-interpreter):nix-shell -i {{interpreter}} --packages {{package_names}}