I want to all statically compiled packages under nixpkgs/pkgs/applications, how to do?

I can filter out all static packages, but I don’t know how to limit them to thenixpkgs/pkgs/applicationsapplication.

code:

let

nixpkgs = import {};
in
builtins.attrNames nixpkgs.pkgsStatic

It’s not easy to do programmatically: the top-level attributes don’t follow the directories hierarchy. Anyway, I wouldn’t spend too much time on this because those categories are going away soon: see CI will soon enforce `pkgs/by-name` for new packages