maintainers/scripts/haskell: ignore self-dependencies

These create trivial loops in the dependency graph, which make the
transitive closure computation loop.
This commit is contained in:
Naïm Favier 2024-01-14 17:46:04 +01:00
parent 3e9cb94ffa
commit afb843b80f
No known key found for this signature in database
GPG Key ID: 95AFCE8211908325

View File

@ -2,8 +2,10 @@
let
pkgs = import ../../.. {};
inherit (pkgs) lib;
getDeps = _: pkg: {
deps = builtins.filter (x: x != null) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
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