Get packages from NUR or from a file hosted externally URL for devShell

Hi,

I am learning how to use nix develop to move some of the CLI from globally install to specific folder.

It works pretty well if the package can be found at nixpkges.

Now I want to add a CLI tool from NUR nur.repos.liyangau.hexo-cli

But I am not too sure how to write a flake to include both nodejs and this tool under devShells.

I was following 3. Explore Nix development environments this post to write my flake.

Does anyone know if it is possible to get something like below to work? If yes, can you please give me an example on where to put nixpkges.overlays = with inputs; [nur.overlay ];

If it is not possible, can I reference the CLI tool from external source (github url for example)?

    devShells = forAllSystems ({pkgs}: {
      default = pkgs.mkShell {
        packages = with pkgs; [
          nodejs
          nur.repos.liyangau.hexo-cli
        ];
      };
    });

Thank you

Answer my own question, adding pkgs in front of nur works.

I am not too sure why since I already have with pkgs; thereā€¦

    devShells = forAllSystems ({pkgs}: {
      default = pkgs.mkShell {
        packages = with pkgs; [
          nodejs
          pkgs.nur.repos.liyangau.hexo-cli
        ];
      };
    });