zfs-kernel: fix strip in cross-compilation

authored by

Julien Moutinho and committed by
Jonathan Ringer
736dcd89 5774ef75

+1 -1
+1 -1
pkgs/os-specific/linux/zfs/default.nix
··· 144 144 # Since zfs compress kernel modules on installation, our strip hooks skip stripping them. 145 145 # Hence we strip modules prior to compression. 146 146 postBuild = optionalString buildKernel '' 147 - find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug 147 + find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES ${stdenv.cc.targetPrefix}strip --strip-debug 148 148 ''; 149 149 150 150 postInstall = optionalString buildKernel ''