summary refs log tree commit diff
path: root/pkgs/tools/nix/info/default.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-10-17 16:42:46 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-10-17 18:26:08 +0300
commite866bb421a9c21d8d0b7aa27febe402536dbb90b (patch)
treef30a526e6273226c842cd6c456876a23e02ecaec /pkgs/tools/nix/info/default.nix
parentb304695c7fe616fa29f845af7597d4b419330b64 (diff)
downloadnixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar.gz
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar.bz2
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar.lz
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar.xz
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.tar.zst
nixpkgs-e866bb421a9c21d8d0b7aa27febe402536dbb90b.zip
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.
Diffstat (limited to 'pkgs/tools/nix/info/default.nix')
-rw-r--r--pkgs/tools/nix/info/default.nix9
1 files 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
   '';