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;
13 o.success && lib.isDerivation o.value && o.value ? outputs && builtins.elem "terminfo" o.value.outputs;
14 terminfos = lib.filterAttrs infoFilter pkgs;
15 excludedTerminfos = lib.filterAttrs (_: drv: !(builtins.elem drv.terminfo config.environment.systemPackages)) terminfos;
16 includedOuts = lib.filterAttrs (_: drv: builtins.elem drv.out config.environment.systemPackages) terminfos;
20 enableAllTerminfo = true;
21 etc."terminfo-missing".text = builtins.concatStringsSep "\n" (builtins.attrNames excludedTerminfos);
22 etc."terminfo-extra-outs".text = builtins.concatStringsSep "\n" (builtins.attrNames includedOuts);
28 machine.fail("grep . /etc/terminfo-missing >&2")
29 machine.fail("grep . /etc/terminfo-extra-outs >&2")