1 import ./make-test-python.nix ({ pkgs, ... }: rec {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ jkarlson ];
7 nodes.machine = { pkgs, config, lib, ... }:
9 infoFilter = name: drv:
11 o = builtins.tryEval drv;
14 lib.isDerivation o.value &&
16 builtins.elem "terminfo" o.value.outputs &&
18 terminfos = lib.filterAttrs infoFilter pkgs;
19 excludedTerminfos = lib.filterAttrs (_: drv: !(builtins.elem drv.terminfo config.environment.systemPackages)) terminfos;
20 includedOuts = lib.filterAttrs (_: drv: builtins.elem drv.out config.environment.systemPackages) terminfos;
24 enableAllTerminfo = true;
25 etc."terminfo-missing".text = builtins.concatStringsSep "\n" (builtins.attrNames excludedTerminfos);
26 etc."terminfo-extra-outs".text = builtins.concatStringsSep "\n" (builtins.attrNames includedOuts);
32 machine.fail("grep . /etc/terminfo-missing >&2")
33 machine.fail("grep . /etc/terminfo-extra-outs >&2")