libvncserver: opt-in to build examples

This commit is contained in:
Benjamin Sparks
2025-06-18 15:38:57 +02:00
parent 815b477938
commit e7f53ce431

View File

@@ -12,6 +12,7 @@
systemd, systemd,
enableShared ? !stdenv.hostPlatform.isStatic, enableShared ? !stdenv.hostPlatform.isStatic,
buildExamples ? false,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@@ -42,6 +43,7 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [ cmakeFlags = [
(lib.cmakeBool "WITH_SYSTEMD" withSystemd) (lib.cmakeBool "WITH_SYSTEMD" withSystemd)
(lib.cmakeBool "BUILD_SHARED_LIBS" enableShared) (lib.cmakeBool "BUILD_SHARED_LIBS" enableShared)
(lib.cmakeBool "WITH_EXAMPLES" buildExamples)
]; ];
buildInputs = buildInputs =