From e866bb421a9c21d8d0b7aa27febe402536dbb90b Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 17 Oct 2017 16:42:46 +0300 Subject: [PATCH] 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. --- pkgs/tools/nix/info/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/nix/info/default.nix b/pkgs/tools/nix/info/default.nix index 1e6aef04f6d..e60c4eecbaf 100644 --- a/pkgs/tools/nix/info/default.nix +++ b/pkgs/tools/nix/info/default.nix @@ -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 '';