Skip to content

Deprecate and remove xlibsWrapper #194054

@trofi

Description

@trofi

In #194044 I noticed unusual behaviour of xlibsWrapper when xorg is overridden. That PR handles override part.

But I think xlibsWrapper should just disappear. Where should be no reason (for example) for pulseaudio to depend on freetype at build time. xlibsWrapper is just the wrapper around a few libraries. Quoting pkgs/top-level/all-packages.nix:

  # Avoid using this. It isn't really a wrapper anymore, but we keep the name.
  xlibsWrapper = callPackage ../development/libraries/xlibs-wrapper {
    packages = [
      freetype fontconfig xorg.xorgproto xorg.libX11 xorg.libXt
      xorg.libXft xorg.libXext xorg.libSM xorg.libICE
    ];
  };

Mechanically we can replace xlibsWrapper with the list of packages it provides. Even better would be to audit needed libraries for each user and use only a subset of them.


Example fix:

More packages to fix:

Fixed packages:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions