I have a clone of the Emacs git repository on my computer. I would like to use Nix to build Emacs with the source taken from the local git clone because I want to write and test some patches. I would prefer reusing the recipe in nixpkgs instead of writting my own Nix code to build Emacs.
Is there a way to reuse nixpkgs’ Emacs recipe to build Emacs from a local git clone?