Skip to content

Commit

Permalink
collectComponents: don't set recurseForDerivations on derivaitons
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpj committed Feb 27, 2020
1 parent e47b3db commit a6004e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib.nix
Expand Up @@ -22,9 +22,9 @@ let

# Haskell.nix versions of these are broken in some cases, see https://github.com/input-output-hk/haskell.nix/issues/457
collectComponents = group: packageSel: haskellPackages:
(lib.mapAttrs (_: package: (package.components.${group} or {}) // { recurseForDerivations = true; })
(lib.filterAttrs (name: package: (package.isHaskell or false) && packageSel package) haskellPackages))
// { recurseForDerivations = true; };
let packageToComponents = package: let components = package.components.${group} or {}; in if lib.isDerivation components then components else pkgs.recurseIntoAttrs components;
packageFilter = package: (package.isHaskell or false) && packageSel package;
in pkgs.recurseIntoAttrs (lib.mapAttrs (_: packageToComponents) (lib.filterAttrs (_: packageFilter) haskellPackages));
collectComponents' = group: collectComponents group (_: true);

# List of all public (i.e. published Haddock, will go on Hackage) Plutus pkgs
Expand Down

0 comments on commit a6004e3

Please sign in to comment.