Start a nix-shell from unstable channel

I want to use the latest version of hugo through a nix-shell
like so

nix-shell -p **hugo**

but I want the package from the unstable channel

how can I run that from unstable?

nix-shell -I nixpkgs= -p **hugo**

-I overrides the NIX_PATH which nix uses to look up the packages in.

1 Like