summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-12-16 12:51:23 +0100
committerGitHub <noreply@github.com>2020-12-16 12:51:23 +0100
commit6dc8af74697b42ae48f26ce79de740c7193f1874 (patch)
treeb188535984f83a3ac50df9d3af9ecf9c241331e0
parentbb78df4b27e199729cf96333b009f8da745764b6 (diff)
parent534223201d8c00b0bc38d3c806d838fef469a127 (diff)
Merge pull request #105857 from Atemu/tarball-json-backport-nixos-search-subsets
tarball: backport nixos-search's subsets for JSON generation
-rw-r--r--pkgs/top-level/packages-config.nix38
1 files changed, 34 insertions, 4 deletions
diff --git a/pkgs/top-level/packages-config.nix b/pkgs/top-level/packages-config.nix
index 8ce855780cf9..52ad7aecd284 100644
--- a/pkgs/top-level/packages-config.nix
+++ b/pkgs/top-level/packages-config.nix
@@ -6,8 +6,38 @@
# Enable recursion into attribute sets that nix-env normally doesn't look into
# so that we can get a more complete picture of the available packages for the
# purposes of the index.
- packageOverrides = super: {
- haskellPackages = super.recurseIntoAttrs super.haskellPackages;
- rPackages = super.recurseIntoAttrs super.rPackages;
- };
+ packageOverrides = super:
+ let
+ recurseIntoAttrs = sets:
+ super.lib.genAttrs
+ (builtins.filter (set: builtins.hasAttr set super) sets)
+ (set: super.recurseIntoAttrs (builtins.getAttr set super));
+ in recurseIntoAttrs [
+ "roundcubePlugins"
+ "emscriptenfastcompPackages"
+ "fdbPackages"
+ "nodePackages_latest"
+ "nodePackages"
+ "platformioPackages"
+ "haskellPackages"
+ "idrisPackages"
+ "sconsPackages"
+ "gns3Packages"
+ "quicklispPackagesClisp"
+ "quicklispPackagesSBCL"
+ "rPackages"
+ "apacheHttpdPackages_2_4"
+ "zabbix50"
+ "zabbix40"
+ "zabbix30"
+ "fusePackages"
+ "nvidiaPackages"
+ "sourceHanPackages"
+ "atomPackages"
+ "emacs26Packages"
+ "emacs27Packages"
+ "steamPackages"
+ "ut2004Packages"
+ "zeroadPackages"
+ ];
}