overlays: fine grain patches

This commit is contained in:
Guanran Wang 2024-02-12 13:27:05 +08:00
parent f14acbe195
commit 4c28b44351
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
6 changed files with 24 additions and 13 deletions

View file

@ -21,9 +21,10 @@
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = [
inputs.self.overlays.sway inputs.self.overlays.nautilus.typeahead
inputs.self.overlays.prismlauncher inputs.self.overlays.prismlauncher.offline-mode
inputs.self.overlays.nautilus inputs.self.overlays.sway.input-method-popup
inputs.self.overlays.sway.tray-dbus-menu
]; ];
### home-manager ### home-manager

View file

@ -4,7 +4,14 @@ let
patches = (old.patches or []) ++ patches; patches = (old.patches or []) ++ patches;
}); });
in { in {
nautilus = import ./nautilus.nix {inherit addPatches;}; nautilus = {
prismlauncher = import ./prismlauncher.nix {inherit addPatches;}; typeahead = import ./nautilus/typeahead.nix {inherit addPatches;};
sway = import ./sway.nix {inherit addPatches;}; };
prismlauncher = {
offline-mode = import ./prismlauncher/offline-mode.nix {inherit addPatches;};
};
sway = {
input-method-popup = import ./sway/input-method-popup.nix {inherit addPatches;};
tray-dbus-menu = import ./sway/tray-dbus-menu.nix {inherit addPatches;};
};
} }

View file

@ -8,12 +8,5 @@
hash = "sha256-nd+Z6A7GE5Go7QxXOI+hiLWQiXegsQatcNfxEsXgamI="; hash = "sha256-nd+Z6A7GE5Go7QxXOI+hiLWQiXegsQatcNfxEsXgamI=";
}} | sed "s/int surface_x, surface_y, surface_width, surface_height;/int surface_x, surface_y, surface_width, surface_height = 0;/g" > $out }} | sed "s/int surface_x, surface_y, surface_width, surface_height;/int surface_x, surface_y, surface_width, surface_height = 0;/g" > $out
'') '')
# text_input: Implement input-method popups
# https://github.com/swaywm/sway/pull/7226
(prev.fetchpatch {
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
hash = "sha256-LsCoK60FKp3d8qopGtrbCFXofxHT+kOv1e1PiLSyvsA=";
})
]; ];
} }

View file

@ -0,0 +1,10 @@
{addPatches, ...}: _final: prev: {
sway-unwrapped = addPatches prev.sway-unwrapped [
# text_input: Implement input-method popups
# https://github.com/swaywm/sway/pull/7226
(prev.fetchpatch {
url = "https://github.com/swaywm/sway/commit/d1c6e44886d1047b3aa6ff6aaac383eadd72f36a.patch";
hash = "sha256-LsCoK60FKp3d8qopGtrbCFXofxHT+kOv1e1PiLSyvsA=";
})
];
}