From 636db898ebbb8856320fe6d2472d79e18f88d5c7 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Sun, 25 Jun 2023 03:07:49 -0400 Subject: lib.licenses: add Sustainable Use License (#239455) --- lib/licenses.nix | 8 ++++++++ pkgs/applications/networking/n8n/default.nix | 8 +------- 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; }; } -- cgit 1.4.1