about summary refs log tree commit diff
path: root/nixpkgs
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-10-17 04:15:19 +0000
committerAlyssa Ross <hi@alyssa.is>2021-10-17 21:30:02 +0000
commite89a7f63cdf9ece054bfc280bc510b1a8e5dd6da (patch)
treee433256e72317238324eae5c95d114c453a6da13 /nixpkgs
parent9c9822f2453402fa85da83514ea6a46e6fa2b94d (diff)
downloadnixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar.gz
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar.bz2
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar.lz
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar.xz
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.tar.zst
nixlib-e89a7f63cdf9ece054bfc280bc510b1a8e5dd6da.zip
zfs: strip debug symbols
initrd-linux: -12427.8 KiB
linux: -12419.3 KiB
nc2k9ym14spzz2pgq6hn84k8k9zgf686: ∅ → ε, +102451.2 KiB
nixos-system-turingmachine: 21.11.20211015.a2dcfa2 → 21.11.20211017.c6f77b7
visjwxsjqmh8c9lxnrxsw5w19zszflm6: ε → ∅, -102451.0 KiB
zfs-kernel: -12419.3 KiB
(cherry picked from commit eefdd9ffb29fad8e650ef8f063d8e4eab4e1e3c2)
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/pkgs/os-specific/linux/zfs/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/zfs/default.nix b/nixpkgs/pkgs/os-specific/linux/zfs/default.nix
index c9f0438c86f5..2d1775dac63e 100644
--- a/nixpkgs/pkgs/os-specific/linux/zfs/default.nix
+++ b/nixpkgs/pkgs/os-specific/linux/zfs/default.nix
@@ -140,6 +140,10 @@ let
         "INSTALL_MOD_PATH=\${out}"
       ];
 
+      postBuild = optionalString buildKernel ''
+         find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
+      '';
+
       postInstall = optionalString buildKernel ''
         # Add reference that cannot be detected due to compressed kernel module
         mkdir -p "$out/nix-support"