linux_6_1: 6.1.117 -> 6.1.118
[NixPkgs.git] / pkgs / tools / system / netdata / dashboard-v2-removal.patch
blob5eb7ef62eeb05c43a60a55449f4faa593435cf20
1 # Original: https://github.com/netdata/netdata/pull/17240
3 diff --git a/CMakeLists.txt b/CMakeLists.txt
4 index f37cbd18a..6db4c9f52 100644
5 --- a/CMakeLists.txt
6 +++ b/CMakeLists.txt
7 @@ -134,6 +134,7 @@ mark_as_advanced(DEFAULT_FEATURE_STATE)
8 # High-level features
9 option(ENABLE_ACLK "Enable Netdata Cloud support (ACLK)" ${DEFAULT_FEATURE_STATE})
10 option(ENABLE_CLOUD "Enable Netdata Cloud by default at runtime" ${DEFAULT_FEATURE_STATE})
11 +option(ENABLE_DASHBOARD_V2 "enable dashboard v2" True)
12 option(ENABLE_ML "Enable machine learning features" ${DEFAULT_FEATURE_STATE})
13 option(ENABLE_DBENGINE "Enable dbengine metrics storage" True)
15 @@ -2946,7 +2947,9 @@ endif()
18 include(src/web/gui/v1/dashboard_v1.cmake)
19 -include(src/web/gui/v2/dashboard_v2.cmake)
20 +if(ENABLE_DASHBOARD_V2)
21 + include(src/web/gui/v2/dashboard_v2.cmake)
22 +endif()
23 include(src/web/gui/gui.cmake)
25 function(cat IN_FILE OUT_FILE)