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:
parent
b304695c7f
commit
e866bb421a
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "nix-info";
|
name = "nix-info";
|
||||||
src = ./info.sh;
|
src = ./info.sh;
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = lib.optionals doCheck [
|
||||||
shellcheck
|
shellcheck
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -25,7 +28,7 @@ stdenv.mkDerivation {
|
|||||||
substituteAllInPlace ./nix-info
|
substituteAllInPlace ./nix-info
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
inherit doCheck;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
shellcheck ./nix-info
|
shellcheck ./nix-info
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user