universedesktop: DWL Patches

This commit is contained in:
2024-05-11 11:12:01 -04:00
parent 0dd747dcf6
commit 5064b95a3c
3 changed files with 20 additions and 6 deletions

View File

@@ -15,7 +15,22 @@ in {
nixpkgs.overlays = [
(final: prev: {
dwl = prev.dwl.overrideAttrs (old: {
dwl = prev.dwl.overrideAttrs (old: let
dwl-patches = pkgs.fetchgit {
url = "https://codeberg.org/dwl/dwl-patches.git";
rev = "7f93815e9c9d50add8493e680b3057ed0cc6e8a0";
hash = "sha256-LK1+WjAlguBvITPyS4oHXW5bNP19WUEfo87GFmyv8Js=";
};
patches = let
dwl-patch = p: "${dwl-patches}/patches/${p}/${p}.patch";
in [
(dwl-patch "ipc")
(dwl-patch "restore-monitor")
(dwl-patch "regexrules")
(dwl-patch "regions")
];
in {
patches = (old.patches or []) ++ patches;
postPatch = ''
export termcmd=${pkgs.foot}/bin/foot
export editcmd=${launch_emacs}
@@ -25,7 +40,7 @@ in {
postInstall = ''
sed -i "s#Exec=dwl#Exec=dwl -s ${dwl-startup}#" $out/share/wayland-sessions/dwl.desktop
chmod ugo+x $out/share/wayland-sessions/dwl.desktop
'';
'';
passthru.providedSessions = ["dwl"];
});
})
@@ -46,7 +61,6 @@ in {
environment.systemPackages = with pkgs; [
dwl
yambar
foot
];
}