git.iko.soy/typeable/nixpkgs
on master help sign in
jq: fix tests on darwin

The tests depend on libjq which isn't installed in the correct location yet when the checkPhase runs.

commitaeab0ec63beaa374b271f94335592ac5dd9f7f5c authorDaiderd Jordan <daiderd@gmail.com> dateSun 29 Jul 2018, 17:55 (8 years ago) parentca4ed1c
1 file changed+6−3
pkgs/development/tools/jq/default.nix+6−3
pkgs/development/tools/jq/default.nix+6−3
@@ -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'';