nixpkgs/pkgs/servers/monitoring/net-snmp
Sergei Trofimovich ca73360bb7 net-snmp: drop build-only references from the closure
Before the change `net-snmp` embedded it's `./configure` options as is
and retained unneeded dependencies:

    $ nix path-info -rSh $(nix-build -A net-snmp.lib) | nl |& unnix
     1  /<<NIX>>/libunistring-1.1          1.8M
     2  /<<NIX>>/xgcc-12.3.0-libgcc      139.1K
     3  /<<NIX>>/libidn2-2.3.4             2.1M
     4  /<<NIX>>/glibc-2.38-23            31.1M
     5  /<<NIX>>/net-snmp-5.9.4            1.7M
     6  /<<NIX>>/bash-5.2-p15             32.6M
     7  /<<NIX>>/openssl-3.0.11           37.3M
     8  /<<NIX>>/openssl-3.0.11-bin       39.8M
     9  /<<NIX>>/openssl-3.0.11-dev       41.7M
    10  /<<NIX>>/net-snmp-5.9.4-lib       46.2M

After the change the closure skips `openssl.dev` input and gets rid of
5MB of closure:

    $ nix path-info -rSh $(nix-build -A net-snmp.lib) | nl |& unnix
     1  /<<NIX>>/libunistring-1.1          1.8M
     2  /<<NIX>>/xgcc-12.3.0-libgcc      139.1K
     3  /<<NIX>>/libidn2-2.3.4             2.1M
     4  /<<NIX>>/glibc-2.38-23            31.1M
     5  /<<NIX>>/net-snmp-5.9.4            1.7M
     6  /<<NIX>>/openssl-3.0.11           37.3M
     7  /<<NIX>>/net-snmp-5.9.4-lib       41.8M
2023-11-02 17:28:43 +00:00
..
default.nix net-snmp: drop build-only references from the closure 2023-11-02 17:28:43 +00:00