universedesktop: DWL Patches
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user