nixos: disable broad terminfo install

This commit is contained in:
2026-05-22 20:28:36 -07:00
parent a860b59e3f
commit b7eb47a71d
2 changed files with 15 additions and 1 deletions

View File

@@ -88,6 +88,18 @@ in
oldAttrs.preConfigure;
});
vte = prev.vte.overrideAttrs (oldAttrs: {
# The termite compatibility patch in nixpkgs still uses a helper that VTE
# removed. VTE 0.84 builds as C++23 and already uses std::to_underlying.
postPatch = (oldAttrs.postPatch or "") + ''
if grep -q "vte::to_integral(vte::platform::ClipboardType::PRIMARY)" src/vtegtk.cc; then
substituteInPlace src/vtegtk.cc \
--replace-fail "vte::to_integral(vte::platform::ClipboardType::PRIMARY)" \
"std::to_underlying(vte::platform::ClipboardType::PRIMARY)"
fi
'';
});
# XXX: codex and claude-code are now provided by flakes in nix.nix
# See the overlay at the end of nixpkgs.overlays in nix.nix

View File

@@ -84,7 +84,9 @@ in
environment = {
homeBinInPath = true;
localBinInPath = true;
enableAllTerminfo = true;
# Installing every terminfo output pulls in obsolete terminal packages
# like termite, which can fail to build on current nixpkgs.
enableAllTerminfo = false;
shellAliases =
{
df_ssh = "TERM=xterm-256color ssh -o StrictHostKeyChecking=no";