1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

jq: fix tests on darwin

The tests depend on libjq which isn't installed in the correct location
yet when the checkPhase runs.
This commit is contained in:
Daiderd Jordan 2018-07-29 17:55:07 +02:00 committed by Profpatsch
parent ca4ed1c3d2
commit aeab0ec63b

View file

@ -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'';