summaryrefslogtreecommitdiffstats
path: root/tests/environment-terminfo.nix
blob: 64ec7d41b3cb2e18c5df759b5f10670088b47321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, ... }:

{
  environment.enableAllTerminfo = true;

  test = ''
    set -v

    echo checking /usr/share/terminfo in environment >&2
    grep 'export TERMINFO_DIRS=.*:/usr/share/terminfo' ${config.system.build.setEnvironment}

    # https://serverfault.com/a/225827
    echo checking /etc/terminfo contains lots of terminfos >&2
    find -L ${config.system.path} -name alacritty | grep .
    find -L ${config.system.path} -name xterm-kitty | grep .
    find -L ${config.system.path} -name wezterm | grep .
  '';
}