···357357 '';
358358359359 checkPhase =
360360+ # GHC (=> shellcheck) isn't supported on some platforms (such as risc-v)
361361+ # but we still want to use writeShellApplication on those platforms
362362+ let
363363+ shellcheckSupported = lib.meta.availableOn stdenv.buildPlatform shellcheck.compiler;
364364+ shellcheckCommand = lib.optionalString shellcheckSupported ''
365365+ # use shellcheck which does not include docs
366366+ # pandoc takes long to build and documentation isn't needed for just running the cli
367367+ ${lib.getExe (haskell.lib.compose.justStaticExecutables shellcheck.unwrapped)} "$target"
368368+ '';
369369+ in
360370 if checkPhase == null then ''
361371 runHook preCheck
362372 ${stdenv.shellDryRun} "$target"
363363- # use shellcheck which does not include docs
364364- # pandoc takes long to build and documentation isn't needed for in nixpkgs usage
365365- ${lib.getExe (haskell.lib.compose.justStaticExecutables shellcheck.unwrapped)} "$target"
373373+ ${shellcheckCommand}
366374 runHook postCheck
367375 ''
368376 else checkPhase;
···1035103510361036 # Fresh toolchains frequently break -Werror build for minor issues.
10371037 WERROR = whenAtLeast "5.15" no;
10381038+10391039+ # > CONFIG_KUNIT should not be enabled in a production environment. Enabling KUnit disables Kernel Address-Space Layout Randomization (KASLR), and tests may affect the state of the kernel in ways not suitable for production.
10401040+ # https://www.kernel.org/doc/html/latest/dev-tools/kunit/start.html
10411041+ KUNIT = no;
10381042 } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
10391043 # Enable CPU/memory hotplug support
10401044 # Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot