Created
July 6, 2025 02:48
-
-
Save kesor/b5f12648cf104135808da582fd448cb5 to your computer and use it in GitHub Desktop.
suckeless-dwm-dmenu-nix-module.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ... }: | |
let | |
patched-dwm = pkgs.dwm.overrideAttrs { | |
src = pkgs.fetchFromGitHub { | |
owner = "kesor"; | |
repo = "dwm"; | |
rev = "c4609547ecb9d8330d56e903690532fd43a001f7"; | |
sha256 = "sha256-iY+v36I4l+wX8N940S2T/wxlwKxWeGtrO1t1CheltG4="; | |
}; | |
prePatch = '' | |
sed -i "s@/usr/local@$out@" config.mk | |
${pkgs.quilt}/bin/quilt push -a | |
''; | |
}; | |
patched-dmenu = pkgs.dmenu.overrideAttrs { | |
src = pkgs.fetchFromGitHub { | |
owner = "kesor"; | |
repo = "dmenu"; | |
rev = "master-patched"; | |
sha256 = "sha256-SneOEY2M3+I7bnUoJk/hqV8fivLpDHIU//YAeRgLRhI="; | |
}; | |
prePatch = '' | |
sed -i "s@/usr/local@$out@" config.mk | |
${pkgs.quilt}/bin/quilt push -a | |
''; | |
}; | |
in | |
{ | |
home.packages = [ | |
patched-dwm | |
patched-dmenu | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment