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:
parent
ca4ed1c3d2
commit
aeab0ec63b
|
@ -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'';
|
||||
|
|
Loading…
Reference in a new issue