@@ -74,6 +74,11 @@ with haskellLib;
7474 isLocalPackage = p: p.isLocal or false;
7575 selectLocalPackages = ps: lib.filterAttrs (n: p: p != null && isLocalPackage p) ps;
7676
77+ # if it's a project package it has a src attribute set with an origSubDir attribute.
78+ # project packages are a subset of localPackages
79+ isProjectPackage = p: p ? src && p.src ? origSubDir;
80+ selectProjectPackages = ps: lib.filterAttrs (n: p: p != null && isLocalPackage p && isProjectPackage p) ps;
81+
7782 # Format a componentId as it should appear as a target on the
7883 # command line of the setup script.
7984 componentTarget = componentId: