@@ -34,12 +34,15 @@ stdenv.mkDerivation rec {
3434 "--datadir=\${doc}/share"
3535 "--mandir=\${man}/share/man"
3636 ]
37− # jq is linked to libjq:
37+ # jq is linked to libjq:
3838 ++ stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
3939
40− installCheckPhase = "$bin/bin/jq --help >/dev/null";
4140 doInstallCheck = true;
42− doCheck = true;
41+ installCheckTarget = "check";
42+
43+ postInstallCheck = ''
44+ $bin/bin/jq --help >/dev/null
45+ '';
4346
4447 meta = with stdenv.lib; {
4548 description = ''A lightweight and flexible command-line JSON processor'';