diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index a84b5f42640b..491d65d8882e 100644 --- a/pkgs/development/tools/jq/default.nix +++ b/pkgs/development/tools/jq/default.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation rec { # jq is linked to libjq: configureFlags = stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}"; + installCheckPhase = "$out/bin/jq --help"; + doInstallCheck = true; + meta = with stdenv.lib; { description = ''A lightweight and flexible command-line JSON processor''; license = licenses.mit;