patch a package on nix os
You can apply patches to a package's source and build it from scratch by adding something like this to your config:
fluxbox = pkgs.fluxbox.overrideattrs(attrs: { patches = attrs.patches ++ [/path/to/patchfile]; });
Will be updating this with corrections after I test it.