Skip to content

Commit

Permalink
clisp TEST broken derivations
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed May 9, 2023
1 parent 288b8da commit ba03ced
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ let
in
allDerivations (callPackage input { }))])
else if isDerivation input
then [ input ]
then pkgs.lib.optionals (! input.meta.broken) [ input ]
else
assert pkgs.lib.isAttrs input;
builtins.filter isDerivation (builtins.attrValues input);
builtins.filter
(drv: isDerivation drv && !drv.meta.broken)
(builtins.attrValues input);
in
# Outputting a list of all derivations (instead of e.g. a mock wrapper
# derivation) allows me to later filter this down to only derivations that need
Expand All @@ -64,5 +66,5 @@ pkgs.lib.pipe [
] [
(builtins.map allDerivations)
pkgs.lib.lists.flatten
(builtins.filter isNotBroken)
#(builtins.filter isNotBroken)
]

0 comments on commit ba03ced

Please sign in to comment.