[Query]: How to incorporate Emacs packages from Github

Hi,

I am trying to install emacs with “emacs-application-framework”, an emacs package, using home-manager. However, this packages does not exist in the current list of emacs packages on nixpkgs repository. I am interested in learning in general how to install emacs packages that are directly from github.

Regards,
Rohit

Exemple :

  ghcid-el = emacsPackages.trivialBuild {
    pname = "ghcid";
    src = fetchurl {
      url = 
      "https://raw.githubusercontent.com/ndmitchell/ghcid/master/plugins/emacs/ghcid.el";
      sha256 = 
      "01n4fwqabx6jdyjqqi1hrpldaf28pib7zm4qcv99ghmrca6qk4xc";
    }; 
  };