diff --git a/release.nix b/release.nix index cbd5693a..f8cf3fd1 100644 --- a/release.nix +++ b/release.nix @@ -125,11 +125,22 @@ let }; }; - all-pkgs = pkgSet.releaseTools.aggregate { + # Aggregate all packages + # All-green-criteria + all-jobs = pkgSet.releaseTools.aggregate { name = "all-packages"; - constituents = pkgsClean; - }; - in pkgsClean // { inherit all-pkgs; }; + constituents = with lib; + let + a2l = mapAttrsToList (_: path: if (lib.isAttrs path) then a2l path else path); + pnames = + (mapAttrsRecursiveCond + (as: !(as ? "type" && as.type == "derivation")) + (path: _: concatStringsSep "." path) + pkgsClean + ); + in a2l pnames; + }; + in pkgsClean // { inherit all-jobs; }; in { "${cfg.prefix}" = pkgs config (self: super: {});