Skip to content

Commit

Permalink
filter packages marked broken
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold committed Jan 11, 2021
1 parent ce71356 commit 534f13e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nixosFlake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ let

legacyPackages = packages;

# Flake expects a flat attrset containing only derivations as values
packages = lib.flattenTreeSystem system packages;
packages = lib.filterAttrs
# Filter on broken packages - you dont't want to expose them to the world
(_: drv: drv.meta.broken != true)
lib.flattenTreeSystem system packages;
}
// (
if packages ? defaultPackage then {
Expand Down

0 comments on commit 534f13e

Please sign in to comment.