final: prev: { emacs = (prev.emacs.override { withXwidgets = false; withX = true; withGTK3 = false; withAthena = false; }).overrideAttrs (attrs: with builtins; with attrs; { configureFlags = filter (f: !elem f ["--with-x-toolkit=lucid" "--with-toolkit-scroll-bars"]) configureFlags ++ ["--with-x-toolkit=no" "--without-toolkit-scroll-bars"]; version = "31.0.50"; patches = patches ++ [./emacs-alpha-dividers.patch]; src = prev.fetchFromGitHub { owner = "emacs-mirror"; repo = "emacs"; rev = "55b610490bfc67a080f78b972ce0736cdd853226"; hash = "sha256-uPXwT5BxNhlI4VV/Idq8TON8My8xLJc8stgAQ/segQI="; }; }); }