linux/manual-config: ignore nulls.

There's no need to set the postFixup env var at all if we're not modular.
This commit is contained in:
Shea Levy 2013-03-02 07:51:12 -05:00
parent b6452df939
commit 8ce1295ad3

View File

@ -146,11 +146,13 @@ stdenv.mkDerivation {
$installFlags "''${installFlagsArray[@]}" $installFlags "''${installFlagsArray[@]}"
''); '');
postFixup = optionalString isModular '' postFixup = if isModular then ''
if [ -z "$dontStrip" ]; then if [ -z "$dontStrip" ]; then
find $out -name "*.ko" -print0 | xargs -0 -r strip -S find $out -name "*.ko" -print0 | xargs -0 -r strip -S
fi fi
''; '' else null;
__ignoreNulls = true;
meta = { meta = {
description = "The Linux kernel"; description = "The Linux kernel";