Skip to content

Commit

Permalink
backport shellcheck-minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
bacchanalia committed Jun 24, 2024
1 parent 5b02830 commit eb9c095
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/trivial-builders.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell, shellcheck }:
{ lib, stdenv, stdenvNoCC, lndir, runtimeShell, shellcheck-minimal }:

let
inherit (lib)
Expand Down Expand Up @@ -306,7 +306,7 @@ rec {
if checkPhase == null then ''
runHook preCheck
${stdenv.shellDryRun} "$target"
${shellcheck.unwrapped}/bin/shellcheck "$target"
${shellcheck-minimal}/bin/shellcheck "$target"
runHook postCheck
''
else checkPhase;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18404,6 +18404,8 @@ with pkgs;
inherit (__splicedPackages.haskellPackages) ShellCheck;
};

shellcheck-minimal = haskell.lib.compose.justStaticExecutables shellcheck.unwrapped;

shellharden = callPackage ../development/tools/shellharden {};

schemaspy = callPackage ../development/tools/database/schemaspy { };
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/stage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ let
import ../build-support/trivial-builders.nix {
inherit lib;
inherit (self) runtimeShell stdenv stdenvNoCC;
inherit (self.pkgsBuildHost) shellcheck;
inherit (self.pkgsBuildHost) shellcheck-minimal;
inherit (self.pkgsBuildHost.xorg) lndir;
};

Expand Down

0 comments on commit eb9c095

Please sign in to comment.