commit 92dba48f78896a8f519ba58b39ec5c9c637855c0 parent 39c2b4cdf1842bc4a27343677c643ae2771ad00a Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Thu, 30 Jul 2020 09:27:10 +0300 gpxlib: enable tests Diffstat:
M | pkgs/development/libraries/gpxlib/default.nix | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/pkgs/development/libraries/gpxlib/default.nix b/pkgs/development/libraries/gpxlib/default.nix @@ -12,6 +12,18 @@ stdenv.mkDerivation { buildInputs = [ expat ]; + cmakeFlags = [ + "-DBUILD_EXAMPLES=OFF" + "-DBUILD_TESTS=ON" + ]; + + doCheck = true; + checkPhase = '' + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/gpx + export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/gpx + test/gpxcheck + ''; + meta = with stdenv.lib; { inherit (sources.gpxlib) description homepage; license = licenses.lgpl3Plus;