about summary refs log tree commit diff
path: root/lib/licenses.nix
diff options
context:
space:
mode:
authorRatchanan Srirattanamet <peathot@hotmail.com>2023-09-25 04:19:12 +0700
committerRatchanan Srirattanamet <peathot@hotmail.com>2023-09-24 21:51:09 +0000
commit20b83a46d62422b7070035a32ae23cce408d4034 (patch)
tree569ea53e7ae34d7b91a96ad8a56ad71d5f9e0e72 /lib/licenses.nix
parent774c35c2a1bc4a9fa8e748ea69fe236cac0ec899 (diff)
netdata: disable installation of non-free v2 dashboard
The v2 dashboard (included since version 1.41.0) is licensed under
Netdata Cloud UI License v1.0, which is a non-free license.

Patch the source code so that the v2 is not included in the source
and the result derivation. Users that want the v2 dashboard can still
request it by overriding this derivation and pass `withCloudUi = true`.

Co-authored-by: Raito Bezarius <masterancpp@gmail.com>
Fixes: https://github.com/NixOS/nixpkgs/issues/256964
Diffstat (limited to 'lib/licenses.nix')
-rw-r--r--lib/licenses.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix
index 0fd6410853745..dcc16edd90df7 100644
--- a/lib/licenses.nix
+++ b/lib/licenses.nix
@@ -840,6 +840,14 @@ in mkLicense lset) ({
     fullName = "University of Illinois/NCSA Open Source License";
   };
 
+  ncul1 = {
+    spdxId = "NCUL1";
+    fullName = "Netdata Cloud UI License v1.0";
+    free = false;
+    redistributable = true; # Only if used in Netdata products.
+    url = "https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/LICENSE.md";
+  };
+
   nlpl = {
     spdxId = "NLPL";
     fullName = "No Limit Public License";