summary refs log tree commit diff
diff options
context:
space:
mode:
authorHugh O'Brien <github@hughobrien.ie>2023-06-25 03:07:49 -0400
committerGitHub <noreply@github.com>2023-06-25 07:07:49 +0000
commit636db898ebbb8856320fe6d2472d79e18f88d5c7 (patch)
tree53855081f17464168cdb4e67df53e63db4f83fde
parent307e5e304c4e8d55219d3a6a1e854b6c277a5104 (diff)
downloadnixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar.gz
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar.bz2
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar.lz
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar.xz
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.tar.zst
nixpkgs-636db898ebbb8856320fe6d2472d79e18f88d5c7.zip
lib.licenses: add Sustainable Use License (#239455)
-rw-r--r--lib/licenses.nix8
-rw-r--r--pkgs/applications/networking/n8n/default.nix8
2 files changed, 9 insertions, 7 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix
index c7e5b14a37c..a92e8e0792e 100644
--- a/lib/licenses.nix
+++ b/lib/licenses.nix
@@ -995,6 +995,14 @@ in mkLicense lset) ({
     url = "https://github.com/thestk/stk/blob/master/LICENSE";
   };
 
+  sustainableUse = {
+    shortName = "sustainable";
+    fullName = "Sustainable Use License";
+    url = "https://github.com/n8n-io/n8n/blob/master/LICENSE.md";
+    free = false;
+    redistributable = false; # only free to redistribute "for non-commercial purposes"
+  };
+
   tsl = {
     shortName = "TSL";
     fullName = "Timescale License Agreegment";
diff --git a/pkgs/applications/networking/n8n/default.nix b/pkgs/applications/networking/n8n/default.nix
index e77bd7963b8..26c7d17ff9e 100644
--- a/pkgs/applications/networking/n8n/default.nix
+++ b/pkgs/applications/networking/n8n/default.nix
@@ -38,12 +38,6 @@ nodePackages.n8n.override {
   meta = with lib; {
     description = "Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.";
     maintainers = with maintainers; [ freezeboy k900 ];
-    license = {
-      fullName = "Sustainable Use License";
-      url = "https://github.com/n8n-io/n8n/blob/master/LICENSE.md";
-      free = false;
-      # only free to redistribute "for non-commercial purposes"
-      redistributable = false;
-    };
+    license = licenses.sustainableUse;
   };
 }