dwm.nix (961B)
1 { pkgs 2 , fetchurl 3 , mkSucklessPackage ? pkgs.callPackage ../common/suckless-pkg.nix { } 4 }: 5 6 mkSucklessPackage { 7 name = "dwm"; 8 src = fetchurl { 9 url = https://dl.suckless.org/dwm/dwm-6.5.tar.gz; 10 hash = "sha256-Ideev6ny+5MUGDbCZmy4H0eExp1k5/GyNS+blwuglyk="; 11 }; 12 13 configHeader = ../configs/dwm.h; 14 extraConfig = { 15 "theme.h" = pkgs.callPackage ../theme.nix { }; 16 }; 17 18 buildInputs = with pkgs; [ 19 xorg.libX11 20 xorg.libXft 21 xorg.libXinerama 22 ]; 23 24 patches = [ 25 # a mix of these patches: statuscolor, statuspadding, systray 26 ../patches/dwm-statusbar.diff 27 28 (fetchurl { 29 url = https://dwm.suckless.org/patches/activetagindicatorbar/dwm-activetagindicatorbar-6.2.diff; 30 hash = "sha256-VKqFvR4u+Q6ya+PqaFAuuYfIZb4i3VN2gBTEb564hyA="; 31 }) 32 (fetchurl { 33 url = https://dwm.suckless.org/patches/urgentborder/dwm-6.2-urg-border.diff; 34 hash = "sha256-nPpKIovwTPKdRL6aiWAr6Mt4dXhryvsTw1l00j1QE8w="; 35 }) 36 ]; 37 }