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:
parent
ca4ed1c3d2
commit
aeab0ec63b
@ -34,12 +34,15 @@ stdenv.mkDerivation rec {
|
|||||||
"--datadir=\${doc}/share"
|
"--datadir=\${doc}/share"
|
||||||
"--mandir=\${man}/share/man"
|
"--mandir=\${man}/share/man"
|
||||||
]
|
]
|
||||||
# jq is linked to libjq:
|
# jq is linked to libjq:
|
||||||
++ stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
|
++ stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
|
||||||
|
|
||||||
installCheckPhase = "$bin/bin/jq --help >/dev/null";
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
doCheck = true;
|
installCheckTarget = "check";
|
||||||
|
|
||||||
|
postInstallCheck = ''
|
||||||
|
$bin/bin/jq --help >/dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = ''A lightweight and flexible command-line JSON processor'';
|
description = ''A lightweight and flexible command-line JSON processor'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user