summary refs log tree commit diff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2017-10-04 11:59:07 +0100
committerDomen Kožar <domen@dev.si>2017-10-04 12:00:07 +0100
commit2b70f5e251e39a4dfb7150362dcb12f08e0ee6b3 (patch)
tree191e74d1c3d6cc50e7c9f6fc046987cf45838d5c
parenta3200348b7e68dbad12bf7056cce75917d3a4184 (diff)
downloadnixpkgs-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.nix3
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;