Skip to content

Do not include helper packages in GNOME closures #32293

Closed

Description

@jtojnar

The wrapGAppsHook adds every interesting directory of every dependency to the path, even when the dependency is only needed during build. For example, the binaries of appstream-glib or gobjectIntrospection are often used during build but the resulting closure does not need to include them. We need to split out a bin output for such tools.

Activity

  1. added
    0.kind: enhancement
    6.topic: GNOME
    6.topic: closure size
    on Dec 3, 2017
  2. stale commented on Jun 5, 2020

    @stale

    Thank you for your contributions.

    This has been automatically marked as stale because it has had no activity for 180 days.

    If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

    Here are suggestions that might help resolve this more quickly:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  3. added
    2.status: stale
    on Jun 5, 2020
  4. moved this to To Do in GNOMEon Jun 20, 2024
  5. qweered commented on May 1, 2026

    @qweered
    Contributor

    Substantively resolved. The two specific examples both have multi-output splits now:

    • pkgs/development/libraries/gobject-introspection/default.nix:50-56: outputs = [ "out" "dev" "devdoc" "man" ]; outputBin = "dev";
    • pkgs/by-name/ap/appstream-glib/package.nix:31-37: outputs = [ "out" "dev" "man" "installedTests" ]; outputBin = "dev";

    wrapGAppsHook itself has also been narrowed — it now relies on env vars (GSETTINGS_SCHEMAS_PATH, GI_TYPELIB_PATH, etc.) populated by individual libraries' runtime-dep hooks, not by sweeping every build dep. Combined with strictDeps = true discipline, build-only helpers no longer leak into runtime closures of consumers. Closing.

  6. moved this from To Do to Done in GNOMEon May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale6.topic: GNOME6.topic: closure size

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions