libvncserver: enable tests for shared builds (#418818)

This commit is contained in:
7c6f434c
2025-06-22 06:31:05 +00:00
committed by GitHub
+11
View File
@@ -44,8 +44,17 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "WITH_SYSTEMD" withSystemd)
(lib.cmakeBool "BUILD_SHARED_LIBS" enableShared)
(lib.cmakeBool "WITH_EXAMPLES" buildExamples)
(lib.cmakeBool "WITH_TESTS" finalAttrs.doCheck)
];
# This test checks if using the **installed** headers works.
# As it doesn't set the include paths correctly, and we have nixpkgs-review to check if
# packages continue to build, patching it would serve no purpose, so we can just remove the test entirely.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'add_test(NAME includetest COMMAND' '# add_test(NAME includetest COMMAND'
'';
buildInputs =
[
libjpeg
@@ -61,6 +70,8 @@ stdenv.mkDerivation (finalAttrs: {
zlib
];
doCheck = enableShared;
meta = with lib; {
description = "VNC server library";
homepage = "https://libvnc.github.io/";