fix(scripts): strip debug info #196

Merged
jalil merged 1 commit from strip-bins into main 2024-12-22 01:03:53 +01:00
Owner

Hopefully I will never have to debug these.

Hopefully I will never have to debug these.
jalil self-assigned this 2024-12-22 00:59:19 +01:00
jalil added 1 commit 2024-12-22 00:59:20 +01:00
fix(scripts): strip debug info
All checks were successful
/ check (push) Successful in 47s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 3s
53a6ebcea3
Hopefully I will never have to debug these.
First-time contributor

Flake output sizes

Definitions:

  • Name: the name of the package/configuration.
  • Size: the closure size (size on disk/NAR size + all transitive dependencies).
  • NAR Size: the size of the build output (package without the dependencies).
  • [NAR] Size Change: the amount changed compared to the main branch.

Tips on reading this data:

  • For NixOS configurations you generally care only about the Size (closure size/size on disk).
    • Reduce the Size by disabling unneeded services/default packages.
  • For Packages you care about both the Size and the NAR Size.
    • Reduce the NAR Size by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc.
    • Reduce the Size by reducing the dependencies (e.g. buildInputs).
    • Don't worry too much about size, some dependencies are deduplicated, e.g. glibc adds ~40MiB to the Size, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. musl is not gonna improve things.

NixOS Configurations

Name Size Size Change NAR Size NAR Size Change
vm 9.2Gi 0 19Ki 0

Packages

Name Size Size Change NAR Size NAR Size Change
audiomenu 42Mi 0 1.4Mi 0
docs 2.4Mi 0 2.4Mi 0
docs-home-markdown 11Ki 0 11Ki 0
docs-nixos-markdown 6.3Ki 0 6.3Ki 0
docs-nvim-markdown 1.9Ki 0 1.9Ki 0
jpassmenu 43Mi 0 2.3Mi 0
nvim 2.0Gi 0 579Ki 0
nvim-headless 610Mi 0 579Ki 0
nvim-no-lsps 1.1Gi 0 579Ki 0
nvim-no-ts 2.0Gi 0 579Ki 0
nvim-small 1.3Gi 0 579Ki 0
# Flake output sizes **Definitions:** - `Name`: the name of the package/configuration. - `Size`: the closure size (size on disk/NAR size + all transitive dependencies). - `NAR Size`: the size of the build output (package without the dependencies). - `[NAR] Size Change`: the amount changed compared to the main branch. **Tips on reading this data:** - For NixOS configurations you generally care only about the `Size` (closure size/size on disk). - Reduce the `Size` by disabling unneeded services/default packages. - For Packages you care about both the `Size` and the `NAR Size`. - Reduce the `NAR Size` by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc. - Reduce the `Size` by reducing the dependencies (e.g. `buildInputs`). - Don't worry too much about size, some dependencies are deduplicated, e.g. `glibc` adds ~40MiB to the `Size`, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. `musl` is not gonna improve things. # NixOS Configurations | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `vm` | 9.2Gi | 0 | 19Ki | 0 | # Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `audiomenu` | 42Mi | 0 | 1.4Mi | 0 | | `docs` | 2.4Mi | 0 | 2.4Mi | 0 | | `docs-home-markdown` | 11Ki | 0 | 11Ki | 0 | | `docs-nixos-markdown` | 6.3Ki | 0 | 6.3Ki | 0 | | `docs-nvim-markdown` | 1.9Ki | 0 | 1.9Ki | 0 | | `jpassmenu` | 43Mi | 0 | 2.3Mi | 0 | | `nvim` | 2.0Gi | 0 | 579Ki | 0 | | `nvim-headless` | 610Mi | 0 | 579Ki | 0 | | `nvim-no-lsps` | 1.1Gi | 0 | 579Ki | 0 | | `nvim-no-ts` | 2.0Gi | 0 | 579Ki | 0 | | `nvim-small` | 1.3Gi | 0 | 579Ki | 0 |
jalil merged commit 53a6ebcea3 into main 2024-12-22 01:03:53 +01:00
jalil deleted branch strip-bins 2024-12-22 01:03:53 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jalil/configuration.nix#196
No description provided.