mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
afb843b80f
These create trivial loops in the dependency graph, which make the transitive closure computation loop.
12 lines
446 B
Nix
12 lines
446 B
Nix
# Nix script to calculate the Haskell dependencies of every haskellPackage. Used by ./hydra-report.hs.
|
|
let
|
|
pkgs = import ../../.. {};
|
|
inherit (pkgs) lib;
|
|
getDeps = _: pkg: let
|
|
pname = pkg.pname or null;
|
|
in {
|
|
deps = builtins.filter (x: x != null && x != pname) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
|
|
broken = (pkg.meta.hydraPlatforms or [null]) == [];
|
|
};
|
|
in
|
|
lib.mapAttrs getDeps pkgs.haskellPackages
|