a : let s = import ./src-for-2.6.31-zen0.nix; in (import ../kernel/generic.nix) (rec { inherit (a) stdenv fetchurl perl mktemp module_init_tools; src = a.builderDefs.fetchGitFromSrcInfo s; version = "2.6.31-zen0"; config = "./kernel-config"; features = { iwlwifi = true; zen = true; }; extraMeta = { maintainers = [ a.lib.maintainers.raskin ]; platforms = with a.lib.platforms; linux; }; preConfigure = '' killOption () { sed -re "s/$1=[ym]/# $1 is not set" -i .config } setOptionMod () { sed -re "s/# $1 is not set/$1=m" -i .config } setOptionYes () { sed -re "s/# $1 is not set/$1=y" -i .config } make allmodconfig killOption CONFIG_IMA cp .config ${config} ''; })