nix-shell.2
Verified for current stable LTS
Nix Shell.2 Command: Start Shell With Packages From Specific Nixpkgs Revision
Use for start shell with packages from specific nixpkgs revision with Nix Shell.2. Exact CLI syntax to start shell with packages from specific nixpkgs revision using Nix Shell.2.
When to use this: Use for start shell with packages from specific nixpkgs revision with Nix Shell.2.
Command Syntax
nix-shell -p <package1 package2 ...> -I nixpkgs={https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz} nix-shell -p <package1 package2 ...> -I nixpkgs=`{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz`} Command Breakdown
-p- Command Option
- Tool-specific option used by this command invocation.
-I- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to start shell with packages from specific nixpkgs revision using Nix Shell.2.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Nix Shell.2 Command: Evaluate File In Specific Interpreter
nix-shell -i <interpreter> -p <package1 package2 ...> Nix Shell.2 Command: Run Command In Non Interactive Shell nix-shell --run "<command> <argument1 argument2 ...>" Nix Shell.2 Command: Start Interactive Shell Nix Expression nix-shell Nix Shell.2 Command: Start Shell With Default Nix Expression nix-shell <default.nix> Nix Shell.2 Command: Start Shell With Packages From Nixpkgs nix-shell -p <package1 package2 ...>