Merge pull request #220030 from Artturin/write-shell-application-lighter

This commit is contained in:
Artturi 2023-03-13 14:44:20 +02:00 committed by GitHub
commit db6255c185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell, shellcheck }:
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell, shellcheck, haskell }:
let
inherit (lib)
@ -341,7 +341,9 @@ rec {
if checkPhase == null then ''
runHook preCheck
${stdenv.shellDryRun} "$target"
${lib.getExe shellcheck} "$target"
# use shellcheck which does not include docs
# pandoc takes long to build and documentation isn't needed for in nixpkgs usage
${lib.getExe (haskell.lib.compose.justStaticExecutables shellcheck.unwrapped)} "$target"
runHook postCheck
''
else checkPhase;

View File

@ -103,7 +103,7 @@ let
trivialBuilders = self: super:
import ../build-support/trivial-builders.nix {
inherit lib;
inherit (self) runtimeShell stdenv stdenvNoCC;
inherit (self) runtimeShell stdenv stdenvNoCC haskell;
inherit (self.pkgsBuildHost) shellcheck;
inherit (self.pkgsBuildHost.xorg) lndir;
};