dotfiles/nix/configs/st.nix

15 lines
492 B
Nix
Raw Normal View History

2024-04-28 11:35:35 +02:00
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
(st.overrideAttrs (oldAttrs: rec {
configFile = writeText "config.def.h" (builtins.readFile ../opt/st/st.h);
postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h";
patches = [
(fetchpatch {
url = "https://st.suckless.org/patches/scrollback/st-scrollback-0.8.5.diff";
sha256 = "0mgsklws6jsrngcsy64zmr604qsdlpd5pqsa3pci7j3gn8im4zyw";
})
];
}))
];
}