mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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 {
|
||||
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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue