jq: sanity check with --help

This commit is contained in:
Domen Kožar 2017-10-04 11:59:07 +01:00
parent a3200348b7
commit 2b70f5e251
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246

View file

@ -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;