From aeab0ec63beaa374b271f94335592ac5dd9f7f5c Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 29 Jul 2018 17:55:07 +0200 Subject: [PATCH] jq: fix tests on darwin The tests depend on libjq which isn't installed in the correct location yet when the checkPhase runs. --- pkgs/development/tools/jq/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index 6ee8c4074b78..93c465ce844a 100644 --- a/pkgs/development/tools/jq/default.nix +++ b/pkgs/development/tools/jq/default.nix @@ -34,12 +34,15 @@ stdenv.mkDerivation rec { "--datadir=\${doc}/share" "--mandir=\${man}/share/man" ] - # jq is linked to libjq: + # jq is linked to libjq: ++ stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}"; - installCheckPhase = "$bin/bin/jq --help >/dev/null"; doInstallCheck = true; - doCheck = true; + installCheckTarget = "check"; + + postInstallCheck = '' + $bin/bin/jq --help >/dev/null + ''; meta = with stdenv.lib; { description = ''A lightweight and flexible command-line JSON processor'';