diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-08-08 21:40:01 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-08-11 09:35:26 +0000 |
commit | ff4b82c966c0f9f145efea6659ff7a850f68d514 (patch) | |
tree | be850629b37e2f42f3b4c7ea528db84fb4478082 /pkgs/tools/nix | |
parent | 75993b0f9312f228cc808ae8469ace229c520756 (diff) | |
download | nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar.gz nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar.bz2 nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar.lz nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar.xz nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.tar.zst nixpkgs-ff4b82c966c0f9f145efea6659ff7a850f68d514.zip |
nix-info: use checkInputs
Diffstat (limited to 'pkgs/tools/nix')
-rw-r--r-- | pkgs/tools/nix/info/default.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/tools/nix/info/default.nix b/pkgs/tools/nix/info/default.nix index cfdef4dd561..898026a6290 100644 --- a/pkgs/tools/nix/info/default.nix +++ b/pkgs/tools/nix/info/default.nix @@ -1,15 +1,12 @@ -{ stdenv, lib, coreutils, findutils, gnugrep, darwin, shellcheck -, doCheck ? false # Avoid having GHC in the build-time closure of all NixOS configuratinos +{ stdenv, lib, coreutils, findutils, gnugrep, darwin +# Avoid having GHC in the build-time closure of all NixOS configurations +, doCheck ? false, shellcheck }: stdenv.mkDerivation { name = "nix-info"; src = ./info.sh; - nativeBuildInputs = lib.optionals doCheck [ - shellcheck - ]; - path = lib.makeBinPath ([ coreutils findutils gnugrep ] ++ (if stdenv.isDarwin then [ darwin.DarwinTools ] else [])); @@ -29,6 +26,8 @@ stdenv.mkDerivation { ''; inherit doCheck; + checkInputs = [ shellcheck ]; + checkPhase = '' shellcheck ./nix-info ''; |