Skip to content

Emacs has gtk.dev in its closure #98755

@edolstra

Description

@edolstra

Describe the bug

In NixOS 20.09, Emacs now has the dev output of gtk+ in its closure, which in turn causes it to pull in stuff like mesa-drivers (424 MiB):

$ nix why-depends /nix/store/389pmkw3r2fsw8n7698hwfxls07q5968-emacs-27.1 /nix/store/f5nyvm43462pbn7cclsrmcyx1m8hjxv7-mesa-20.1.7-drivers
/nix/store/389pmkw3r2fsw8n7698hwfxls07q5968-emacs-27.1
└───libexec/emacs/27.1/x86_64-pc-linux-gnu/emacs.pdmp: …5z-fribidi-1.0.7/bin./nix/store/5b5i7xi8pzbl5pr9p4nsqm58gl776cak-gtk+3-3.24.21-dev/bin./nix/stor…
    → /nix/store/5b5i7xi8pzbl5pr9p4nsqm58gl776cak-gtk+3-3.24.21-dev
    └───nix-support/propagated-build-inputs: …fnw-pango-1.45.3-dev /nix/store/hp2rbhz1bld9d36gn18y8adj3mgpwvwx-mesa-20.1.7-dev /nix/store/7d1w…
        → /nix/store/hp2rbhz1bld9d36gn18y8adj3mgpwvwx-mesa-20.1.7-dev
        └───lib/pkgconfig/d3d.pc: …prefix=/nix/store/f5nyvm43462pbn7cclsrmcyx1m8hjxv7-mesa-20.1.7-drivers.libdir=${pr…
            → /nix/store/f5nyvm43462pbn7cclsrmcyx1m8hjxv7-mesa-20.1.7-drivers

This caused the closure size of Emacs to increase from 339 MiB in NixOS 20.03 to 1324 MiB in 20.09.

Metadata

NixOS 20.09.20200923.c8e389d

Metadata

Metadata

Assignees

Labels

0.kind: bugSomething is broken1.severity: blockerThis is preventing another PR or issue from being completed6.topic: closure sizeThe final size of a derivation, including its dependencies6.topic: emacsText editor
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions