Remove ucs-utils from back-button

The ucs-utils package makes Emacs shutdown much slower and back-button
can work just fine without it.
parent 977c6ade
......@@ -178,6 +178,23 @@ in
back-button = {
enable = true;
package = epkgs: epkgs.back-button.overrideAttrs (drv:
let isNotUcsUtils = p: (builtins.parseDrvName p.name).name != "emacs-ucs-utils";
in {
patches = [
# ucs-utils makes Emacs shutdown very slow, remove its use through this patch.
(pkgs.fetchpatch {
name = "remove-ucs-utils.patch";
url = "https://github.com/rutger-eiq/back-button/commit/164cf6e2a536a8da6e45c0365922ea1887acde79.patch";
sha256 = "0czii9hdk7l6j3palpb68377phms9jw9ldb51apjhbmscjyr55q3";
})
];
# Also need to remove ucs-utils from the various build inputs.
buildInputs = builtins.filter isNotUcsUtils drv.buildInputs;
propagatedBuildInputs = builtins.filter isNotUcsUtils drv.propagatedBuildInputs;
propagatedUserEnvPkgs = builtins.filter isNotUcsUtils drv.propagatedUserEnvPkgs;
});
defer = 1;
diminish = [ "back-button-mode" ];
command = [ "back-button-mode" ];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment