1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-29 03:04:38 +00:00

Add system terminfo to TERMINFO_DIRS by default

This commit is contained in:
Nathan Henrie 2022-10-19 15:09:28 -06:00
parent ef56fd8979
commit ed993c5038
3 changed files with 12 additions and 1 deletions

View file

@ -177,7 +177,7 @@ in
{
XDG_CONFIG_DIRS = map (path: path + "/etc/xdg") cfg.profiles;
XDG_DATA_DIRS = map (path: path + "/share") cfg.profiles;
TERMINFO_DIRS = map (path: path + "/share/terminfo") cfg.profiles;
TERMINFO_DIRS = map (path: path + "/share/terminfo") cfg.profiles ++ [ "/usr/share/terminfo" ];
EDITOR = mkDefault "nano";
PAGER = mkDefault "less -R";
};

View file

@ -101,6 +101,7 @@ let
tests.autossh = makeTest ./tests/autossh.nix;
tests.checks-nix-gc = makeTest ./tests/checks-nix-gc.nix;
tests.environment-path = makeTest ./tests/environment-path.nix;
tests.environment-terminfo = makeTest ./tests/environment-terminfo.nix;
tests.homebrew = makeTest ./tests/homebrew.nix;
tests.launchd-daemons = makeTest ./tests/launchd-daemons.nix;
tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix;

View file

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
with lib;
{
test = ''
echo checking /usr/share/terminfo in environment >&2
grep 'export TERMINFO=.*:/usr/share/terminfo' ${config.system.build.setEnvironment}
'';
}