Likewise, you can specify an attribute with the run command: nix run .#hello and the develop command: nix develop .#hello.
nix run .#hello
nix develop .#hello