summary refs log tree commit diff
path: root/maintainers/scripts/haskell/dependencies.nix
blob: f0620902c0ee0df484ec9726c15cc04302765c02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Nix script to calculate the Haskell dependencies of every haskellPackage. Used by ./hydra-report.hs.
let
  pkgs = import ../../.. {};
  inherit (pkgs) lib;
  getDeps = _: pkg: {
    deps = builtins.filter (x: !isNull x) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
    broken = (pkg.meta.hydraPlatforms or [null]) == [];
  };
in
  lib.mapAttrs getDeps pkgs.haskellPackages