Skip to content

Commit

Permalink
qgis: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imincik committed Nov 16, 2023
1 parent 75fbff2 commit f20928a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
, sqlite
, txt2tags
, zstd
, xvfb-run
}:

let
Expand Down Expand Up @@ -155,7 +156,7 @@ in mkDerivation rec {
"-DCMAKE_BUILD_TYPE=Release"
"-DWITH_3D=True"
"-DWITH_PDAL=True"
"-DENABLE_TESTS=False"
"-DENABLE_TESTS=True"
] ++ lib.optional (!withWebKit) "-DWITH_QTWEBKIT=OFF"
++ lib.optional withGrass (let
gmajor = lib.versions.major grass.version;
Expand All @@ -179,6 +180,18 @@ in mkDerivation rec {
--prefix PATH : ${lib.makeBinPath [ grass ]}
'';

doCheck = true;

nativeCheckInputs = [ xvfb-run ];

checkPhase = ''
runHook preCheck
xvfb-run -a -n 1 -s '-screen 0 1280x1024x24 -dpi 96' ninja -j16 test
runHook postCheck
'';

meta = with lib; {
description = "A Free and Open Source Geographic Information System";
homepage = "https://www.qgis.org";
Expand Down

0 comments on commit f20928a

Please sign in to comment.