Forrest logo
back to context overview

nix-shell

List of commands for nix-shell:

  • nix-shell:tldr:0fb2c nix-shell: Start with nix expression in `shell.nix` or `default.nix` in the current directory.
    $ nix-shell
    try on your machine
    explain this command
  • nix-shell:tldr:42f88 nix-shell: Start with packages loaded from specific nixpkgs revision.
    $ nix-shell --packages ${package_name_1 package_name_2 ---} -I nixpkgs=${https:--github-com-NixOS-nixpkgs-archive-nixpkgs_revision-tar-gz}
    try on your machine
    explain this command
  • nix-shell:tldr:7338b nix-shell: Start with expression in `default.nix` in the current directory.
    $ nix-shell ${default-nix}
    try on your machine
    explain this command
  • nix-shell:tldr:b6cd7 nix-shell: Evaluate rest of file in specific interpreter, for use in `#!-scripts` (see ).
    $ nix-shell -i ${interpreter} --packages ${package_name_1 package_name_2 ---}
    try on your machine
    explain this command
  • nix-shell:tldr:c420e nix-shell: Run shell command in non-interactive shell and exit.
    $ nix-shell --run "${command} ${arg1 arg2 ---}"
    try on your machine
    explain this command
  • nix-shell:tldr:d5180 nix-shell: Start with packages loaded from nixpkgs.
    $ nix-shell --packages ${package_name_1 package_name_2 ---}
    try on your machine
    explain this command
back to context overview