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.fetchFromSavannah { repo = "emacs"; rev = "3dc022a0237389e2904a200da01f41dad779f1d9"; hash = "sha256-23GKU/Z/FGShYdawzt7EPquZKMpZw1FyVgH8b0XmCjU="; }; }); }