nix-info: Disable doCheck by default

ShellCheck depends on GHC which is quite a large package to have in the
build-time closure of all NixOS systems.
This commit is contained in:
Tuomas Tynkkynen 2017-10-17 16:42:46 +03:00
parent b304695c7f
commit e866bb421a

View File

@ -1,9 +1,12 @@
{ stdenv, lib, coreutils, findutils, gnugrep, darwin, shellcheck }:
{ stdenv, lib, coreutils, findutils, gnugrep, darwin, shellcheck
, doCheck ? false # Avoid having GHC in the build-time closure of all NixOS configuratinos
}:
stdenv.mkDerivation {
name = "nix-info";
src = ./info.sh;
buildInputs = [
nativeBuildInputs = lib.optionals doCheck [
shellcheck
];
@ -25,7 +28,7 @@ stdenv.mkDerivation {
substituteAllInPlace ./nix-info
'';
doCheck = true;
inherit doCheck;
checkPhase = ''
shellcheck ./nix-info
'';