{ emacs, fetchFromGitHub }: (emacs.override { withXwidgets = false; withX = true; withGTK3 = false; withAthena = false; srcRepo = true; }).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 = fetchFromGitHub { owner = "emacs-mirror"; repo = "emacs"; rev = "4e165cc2d0cfb889ea2206a5e7a4ccf8c77aa2b5"; hash = "sha256-CWwe8CXLGXlS3rV2Tjk+xDBjrmkjQANv25x+6AqMMlc="; }; })