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;
};