mirror of
https://github.com/nix-community/noogle.git
synced 2024-11-22 05:33:32 +03:00
Extend by many more functions from "pkgs.*"
Recursively by all functions in: - elmPackages - agdaPackages - dhallPackages - beamPackages - dotnetCorePackages - emacsPackages - gradle-packages - ociTools - releaseTools - snapTools - vmTools
This commit is contained in:
parent
5d88cb1482
commit
adc56898d3
@ -27,6 +27,22 @@ let
|
||||
initialPath = [ "pkgs" "rustPackages" ];
|
||||
};
|
||||
appimageTools = collectFns pkgs.appimageTools { initialPath = [ "pkgs" "appimageTools" ]; };
|
||||
elmPackages = collectFns pkgs.elmPackages { initialPath = [ "pkgs" "elmPackages" ]; };
|
||||
|
||||
agdaPackages = collectFns pkgs.agdaPackages { initialPath = [ "pkgs" "agdaPackages" ]; ignores = [ "lib" ]; };
|
||||
dhallPackages = collectFns pkgs.dhallPackages { initialPath = [ "pkgs" "dhallPackages" ]; ignores = [ "lib" ]; };
|
||||
|
||||
beamPackages = collectFns pkgs.beamPackages { initialPath = [ "pkgs" "beamPackages" ]; };
|
||||
|
||||
dotnetCorePackages = collectFns pkgs.dotnetCorePackages { initialPath = [ "pkgs" "dotnetCorePackages" ]; };
|
||||
emacsPackages = collectFns pkgs.emacsPackages { initialPath = [ "pkgs" "emacsPackages" ]; };
|
||||
gradle-packages = collectFns pkgs.gradle-packages { initialPath = [ "pkgs" "gradle-packages" ]; };
|
||||
|
||||
ociTools = collectFns pkgs.ociTools { initialPath = [ "pkgs" "ociTools" ]; };
|
||||
releaseTools = collectFns pkgs.releaseTools { initialPath = [ "pkgs" "releaseTools" ]; };
|
||||
snapTools = collectFns pkgs.snapTools { initialPath = [ "pkgs" "snapTools" ]; };
|
||||
vmTools = collectFns pkgs.vmTools { initialPath = [ "pkgs" "vmTools" ]; };
|
||||
|
||||
|
||||
############# Non-recursive analysis sets (pkgs.<nested>)
|
||||
# pkgs cannot be analysed recursively
|
||||
|
@ -50,7 +50,7 @@ let
|
||||
]
|
||||
*/
|
||||
collectFns = set:
|
||||
{ initialPath ? [ ], limit ? null, }:
|
||||
{ initialPath ? [ ], limit ? null, ignores ? [ ] }:
|
||||
let
|
||||
filterFns = builtins.filter (item:
|
||||
item.docs != null &&
|
||||
@ -94,7 +94,7 @@ let
|
||||
path = lib.unique (item.key ++ [ name ]);
|
||||
in
|
||||
if lib.isDerivation nextVal || name == "__functor"
|
||||
|| (limit != null && item.depth >= limit) then
|
||||
|| (limit != null && item.depth >= limit) || (builtins.any (n: n == name) ignores) then
|
||||
# skipping all more nested values by
|
||||
# returning the previous item
|
||||
item
|
||||
|
Loading…
Reference in New Issue
Block a user