diff options
author | Domen Kožar <domen@dev.si> | 2017-10-04 11:59:07 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2017-10-04 12:00:07 +0100 |
commit | 2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3 (patch) | |
tree | 191e74d1c3d6cc50e7c9f6fc046987cf45838d5c | |
parent | a3200348b7e68dbad12bf7056cce75917d3a4184 (diff) | |
download | nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar.gz nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar.bz2 nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar.lz nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar.xz nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.tar.zst nixpkgs-2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3.zip |
jq: sanity check with --help
-rw-r--r-- | pkgs/development/tools/jq/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index a84b5f42640..491d65d8882 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; |