nixos/terminfo: ignore broken packages in all-terminfo test

This commit is contained in:
Emil Thorsoe 2023-11-30 11:40:00 +02:00
parent 3f84b6a6e4
commit fe978b9691

View File

@ -10,7 +10,11 @@ import ./make-test-python.nix ({ pkgs, ... }: rec {
let
o = builtins.tryEval drv;
in
o.success && lib.isDerivation o.value && o.value ? outputs && builtins.elem "terminfo" o.value.outputs;
o.success &&
lib.isDerivation o.value &&
o.value ? outputs &&
builtins.elem "terminfo" o.value.outputs &&
!o.value.meta.broken;
terminfos = lib.filterAttrs infoFilter pkgs;
excludedTerminfos = lib.filterAttrs (_: drv: !(builtins.elem drv.terminfo config.environment.systemPackages)) terminfos;
includedOuts = lib.filterAttrs (_: drv: builtins.elem drv.out config.environment.systemPackages) terminfos;