From 2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 4 Oct 2017 11:59:07 +0100 Subject: [PATCH] jq: sanity check with --help --- pkgs/development/tools/jq/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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;