nixpkgs/pkgs
Maximilian Bosch 408ece7d3d
libreoffice-fresh: strip away BUILDCONFIG, reduce runtime closure size by ~20%
In v7.5.x a change was introduced that writes the BUILDCONFIG into
`$out/lib/libreoffice/program/libsofficeapp.so` including the
`PKG_CONFIG_PATH` containing references to all `dev` outputs of library
dependencies:

    $ strings $(nix-build -A libreoffice-fresh)/lib/libreoffice/program/libsofficeapp.so|grep PKG_CONFIG_PATH
    [...], "BuildConfig": "[...] 'PKG_CONFIG_PATH=[...]'"

This isn't really needed because this information can also be obtained
by `nix derivation show`. Also, this causes a 20% larger runtime-closure
because of all the dev dependencies being referenced by the output and
thus downloaded whenever libreoffice is substituted somewhere. The
actual numbers look like this:

    $ nix path-info -Sh ./result-old
    /nix/store/3mzrqh4gg7v27vdrrap9dj3x8myysmyf-libreoffice-7.5.4.1-wrapped	  2.0G
    $ nix path-info -Sh ./result
    /nix/store/g5y60s0a2q2v6r58xcayv62z7fjfi816-libreoffice-7.5.4.1-wrapped	  1.6G

Only `libreoffice-fresh` is affected, `pkgs.libreoffice` isn't because
it still points to 7.4 whereas the problematic change was introduced in
7.5.

To make sure this doesn't get reintroduced by accident, the derivation
also prohibits now to reference any dev output from a build input.

[1] https://gerrit.libreoffice.org/c/core/+/141197
2023-07-25 18:05:49 +02:00
..
applications libreoffice-fresh: strip away BUILDCONFIG, reduce runtime closure size by ~20% 2023-07-25 18:05:49 +02:00
build-support treewide .goModules: revert renaming the derivation 2023-07-24 08:15:48 +02:00
common-updater
data numix-icon-theme-square: 23.07.08 -> 23.07.21 2023-07-23 13:22:30 +00:00
desktops Merge master into staging-next 2023-07-24 06:01:13 +00:00
development Merge pull request #245102 from SuperSandro2000/phonon-gstreamer 2023-07-24 17:38:54 +02:00
games jazz2: 2.0.0 -> 2.1.0 2023-07-24 13:45:37 +02:00
misc Merge master into staging-next 2023-07-23 18:01:33 +00:00
os-specific Merge pull request #245074 from K900/kernels-20230723 2023-07-24 12:11:04 +03:00
pkgs-lib
servers Merge pull request #244454 from jnsgruk/homepage-0.6.23 2023-07-24 18:16:03 +02:00
shells Merge pull request #245044 from r-ryantm/auto-update/zsh-vi-mode 2023-07-23 22:40:39 -06:00
stdenv Merge master into staging-next 2023-07-22 00:02:13 +00:00
test
tools Merge pull request #242973 from aaronjheng/osv-detector 2023-07-24 17:35:48 +02:00
top-level Merge pull request #244454 from jnsgruk/homepage-0.6.23 2023-07-24 18:16:03 +02:00