1# Nix script to calculate the Haskell dependencies of every haskellPackage. Used by ./hydra-report.hs.
2let
3 pkgs = import ../../.. {};
4 inherit (pkgs) lib;
5 getDeps = _: pkg: {
6 deps = builtins.filter (x: !isNull x) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
7 broken = (pkg.meta.hydraPlatforms or [null]) == [];
8 };
9in
10 lib.mapAttrs getDeps pkgs.haskellPackages