Skip to content

Commit

Permalink
Filter out meta.broken = true packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Aug 28, 2020
1 parent 91423ea commit 69d7f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixpkgs_review/nix/evalAttrs.nix
Expand Up @@ -10,9 +10,10 @@ let
attrPath = lib.splitString "." name;
pkg = lib.attrByPath attrPath null pkgs;
maybePath = builtins.tryEval "${pkg}";
markedBroken = lib.attrByPath [ "meta" "broken" ] false pkg;
in rec {
exists = lib.hasAttrByPath attrPath pkgs;
broken = !exists || !maybePath.success;
broken = !exists || !maybePath.success || markedBroken;
path = if !broken then maybePath.value else null;
drvPath = if !broken then pkg.drvPath else null;
};
Expand Down

0 comments on commit 69d7f95

Please sign in to comment.