at 25.11-pre 487 B view raw
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 = 6 _: pkg: 7 let 8 pname = pkg.pname or null; 9 in 10 { 11 deps = builtins.filter (x: x != null && x != pname) ( 12 map (x: x.pname or null) (pkg.propagatedBuildInputs or [ ]) 13 ); 14 broken = (pkg.meta.hydraPlatforms or [ null ]) == [ ]; 15 }; 16in 17lib.mapAttrs getDeps pkgs.haskellPackages