summary refs log blame commit diff
path: root/maintainers/scripts/haskell/transitive-broken-packages.nix
blob: d4ddaa9576587bf2cceaa3791c78c3da65e7a263 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                    

                                                            
let
  nixpkgs = import ../../..;
  inherit (nixpkgs {}) pkgs lib;
  getEvaluating = x:
    builtins.attrNames (
      lib.filterAttrs (
        _: v: (builtins.tryEval (v.outPath or null)).success && lib.isDerivation v && !v.meta.broken
      ) x
    );
  brokenDeps = lib.subtractLists
    (getEvaluating pkgs.haskellPackages)
    (getEvaluating (nixpkgs { config.allowBroken = true; }).haskellPackages);
in
''
  ${lib.concatMapStringsSep "\n" (x: "  - ${x}") brokenDeps}
''