optimize gnome-console-tweaks logic

This commit is contained in:
Sean Buckley 2023-07-09 21:20:04 -04:00
parent bdeff9d709
commit 2a25f96d61

View file

@ -1,18 +1,15 @@
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
(self: super: { (self: super: {
gnome-console = super.gnome-console.overrideAttrs (prev: { gnome-console = super.gnome-console.overrideAttrs (
patches = { patches ? [ ], ... }: {
( patches = patches ++ [
if (builtins.elem "patches" (builtins.attrNames prev))
then prev.patches
else [ ]
) ++ [
./no-notification.patch ./no-notification.patch
./no-warn-close.patch ./no-warn-close.patch
./tango.patch ./tango.patch
]; ];
}); }
);
}) })
]; ];
} }