diff --git a/pkgs/tools/nix/info/default.nix b/pkgs/tools/nix/info/default.nix index cfdef4dd5613..898026a62902 100644 --- a/pkgs/tools/nix/info/default.nix +++ b/pkgs/tools/nix/info/default.nix @@ -1,15 +1,12 @@ -{ stdenv, lib, coreutils, findutils, gnugrep, darwin, shellcheck -, doCheck ? false # Avoid having GHC in the build-time closure of all NixOS configuratinos +{ stdenv, lib, coreutils, findutils, gnugrep, darwin +# Avoid having GHC in the build-time closure of all NixOS configurations +, doCheck ? false, shellcheck }: stdenv.mkDerivation { name = "nix-info"; src = ./info.sh; - nativeBuildInputs = lib.optionals doCheck [ - shellcheck - ]; - path = lib.makeBinPath ([ coreutils findutils gnugrep ] ++ (if stdenv.isDarwin then [ darwin.DarwinTools ] else [])); @@ -29,6 +26,8 @@ stdenv.mkDerivation { ''; inherit doCheck; + checkInputs = [ shellcheck ]; + checkPhase = '' shellcheck ./nix-info '';