Nixpkgs: Easy wins for the `mono` closure size

Created on 20 Sep 2019  路  3Comments  路  Source: NixOS/nixpkgs

Splitting dev outputs from some dependencies

libgdiplus does not have a "dev" output, and drags in many development libs unnecessarily: cairo-dev, mesa-dev, etc. That's ~300MB saved.

Re-enabling stripping

dontStrip was added to the mono package in 2010, mentioning that stripping breaks mcs --version. As far as I can tell, this is not true anymore, and from my testing nothing seems to break when stripping. That's another ~300MB saved.

Splitting out the runtime

The mono package currently contains both the mono runtime and a bunch of development tools. In order to reduce closure size it would be nice to see this package split up.

As an example, anyone who installs steam currently gets a transitive dep to a 32 bit python2.7 on their system because of the "mono-heapviz" script.

enhancement closure-size package (update)

Most helpful comment

Awesome work @delroth!

All 3 comments

Awesome work @delroth!

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.

1 and 2 are implemented, I'll look at implementing 3 again (and kill some python2 dependencies).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grahamc picture grahamc  路  3Comments

domenkozar picture domenkozar  路  3Comments

copumpkin picture copumpkin  路  3Comments

spacekitteh picture spacekitteh  路  3Comments

ghost picture ghost  路  3Comments