Filter out broken packages from list of packages

I’m trying to unify my systems and make home-manager and want to filter out packages of my list of packages that are in my Linux systems’ closure but are broken on Darwin.

How could I achieve this? (especially w.r.t. transitive brokeness)

1 Like

The solution to this would be to tryEval each package toString’d and filter based on the result.

See Creating a derivation that depends on all non-broken Haskell packages