summaryrefslogtreecommitdiffstats
path: root/configs/claude.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-22 16:20:19 +0000
committertv <tv@krebsco.de>2026-11-22 19:37:36 +0000
commitd191b4bfb822cf0cfac00e584d113804f0d8a258 (patch)
tree2dcdef5a6f2d2e4995b972bbbc55c416cc18cee8 /configs/claude.nix
parentfb7987b41dc81e800bbdae7dd7313600b6c31428 (diff)
configs/claude: git without gettext
git-minimal refers to gettext (25M) only for git-sh-i18n, which its shell scripts use for messages in other languages than English, which the guest has none of: the remotes' git and claude-remote's, built with nlsSupport = false (NO_GETTEXT), and without nixpkgs' postPatch putting gettext.sh's path into git-sh-i18n regardless. Not as an overlay of gitMinimal, which fetchers and builds use, too.
Diffstat (limited to 'configs/claude.nix')
-rw-r--r--configs/claude.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/configs/claude.nix b/configs/claude.nix
index be2bdbe..205078b 100644
--- a/configs/claude.nix
+++ b/configs/claude.nix
@@ -19,10 +19,23 @@ let
# The tmux of claude-remote-control@NAME.
tmux = name: "${pkgs.tmux}/bin/tmux -S /run/claude/${name}/tmux";
+ # git, for the remotes and claude-remote, without gettext (25M, for
+ # git's messages in other languages than English, which the guest has
+ # none of): NO_GETTEXT, and git-sh-i18n not pointing at gettext.sh,
+ # which nixpkgs' postPatch puts there regardless. Not as an overlay of
+ # gitMinimal, which would reach everything built with it.
+ git = (pkgs.gitMinimal.override { nlsSupport = false; }).overrideAttrs (old: {
+ postPatch = builtins.replaceStrings
+ [ "--subst-var-by gettext ${pkgs.gettext}" ]
+ [ "--subst-var-by gettext /no-gettext" ]
+ old.postPatch;
+ });
+
# Root's tool for the remotes.
claude-remote = pkgs.callPackage ../pkgs/claude-remote.nix {
inherit stateDir;
systemd = config.systemd.package; # the guest's, which may be slimmer
+ gitMinimal = git;
};
# Remotes started with systemctl, rather than by multi-user.target's
@@ -111,7 +124,7 @@ in
pkgs.diffutils
pkgs.findutils
pkgs.gawk
- pkgs.gitMinimal
+ git
pkgs.gnugrep
pkgs.gnused
pkgs.ripgrep