{pkgs, ...}: { home.packages = with pkgs; [ (st.overrideAttrs (oldAttrs: rec { buildInputs = oldAttrs.buildInputs ++ [harfbuzz]; patches = [ (fetchpatch { url = "https://st.suckless.org/patches/scrollback/st-scrollback-ringbuffer-0.9.2.diff"; sha256 = "1r23q4mi5bkam49ld5c3ccwaa1li7bbjx0ndjgm207p02az9h4cn"; }) (fetchpatch { url = "https://st.suckless.org/patches/scrollback/st-scrollback-mouse-0.9.2.diff"; sha256 = "068s5rjvvw2174y34i5xxvpw4jvjy58akd1kgf025h1153hmf7jy"; }) ]; configFile = writeText "config.def.h" (builtins.readFile ./config.h); postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h"; })) ]; }