Do not replace patches, but only add custom patches.
It actually is not necessary to use overrideAttrs as dmenu and st both expose "patches" attribute which can easily be overridden. Maybe it was necessary back then, as dmenu already had a patch as fallback: 4b610d814e/pkgs/applications/misc/dmenu/default.nix (L1) See: https://mamot.fr/@Thib/107716798899455762
4b610d814e/pkgs/applications/misc/dmenu/default.nix (L1)
Configure my own color scheme.