From d191b4bfb822cf0cfac00e584d113804f0d8a258 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 22 Nov 2026 16:20:19 +0000 Subject: 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. --- configs/claude.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'configs') 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 -- cgit v1.3.1