git.iko.soy/typeable/nixpkgs
on master help sign in
jq: sanity check with --help
commit2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3 authorDomen Kožar <domen@dev.si> dateWed 4 Oct 2017, 11:59 (9 years ago) parenta320034
1 file changed+3
pkgs/development/tools/jq/default.nix+3
pkgs/development/tools/jq/default.nix+3
@@ -28,6 +28,9 @@ stdenv.mkDerivation rec {
2828 # jq is linked to libjq:
2929 configureFlags = stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
3030
31+ installCheckPhase = "$out/bin/jq --help";
32+ doInstallCheck = true;
33+
3134 meta = with stdenv.lib; {
3235 description = ''A lightweight and flexible command-line JSON processor'';
3336 license = licenses.mit;