about summary refs log tree commit diff
path: root/nixpkgs/maintainers/scripts/haskell/dependencies.nix
blob: fd8338c0029a98ae0166ec1ca474e64093861f7b (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: x != null) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
    broken = (pkg.meta.hydraPlatforms or [null]) == [];
  };
in
  lib.mapAttrs getDeps pkgs.haskellPackages