Apply @tyler-dodge’s background thread patch to Emacs: https://github.com/tyler-dodge/emacs/commit/b386047f311af495963ad6a25ddda128acc1d461
emacsTylerDodge = pkgs.emacsGit.overrideAttrs
(
_: {
src = pkgs.fetchgit {
url = "https://github.com/tyler-dodge/emacs.git";