nix:tldr:1e3ff
The command you provided is a nix shell command that creates an environment with specific packages from the nixpkgs repository.
Here is a breakdown of the command:
nix shell: This initiates a nix shell environment. It sets up an isolated shell environment with the specified packages.
${nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ---}: This is an attribute set expression that specifies the packages to be included in the shell environment. The # separates the nixpkgs repository from the specific packages to be included. In this case, the packages pkg1, pkg2, and pkg3 from the nixpkgs repository will be included.
The --- character at the end of the attribute set expression is used to terminate the attribute expression and prevents further attribute parsing.
In summary, the command creates a nix shell environment with the specified packages from the nixpkgs repository. You can then use this environment to work with the specified packages without affecting your system-wide packages.