example: get an environment which is used to build irssi (also see nix-shell) $ nix-build $NIXPKGS --run-env -A irssi example: get a persistent environment which is used to build irssi $ nix-build $NIXPKGS --run-env -A irssi --add-root
nix-build <path> --run-env
has been superseded by nix-shell
. From Nix manual section C.12. Release 1.6 (2013-09-10):
The command
nix-build --run-env
has been renamed tonix-shell
.