summaryrefslogtreecommitdiffstats
path: root/lib/licenses.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/licenses.nix')
-rw-r--r--lib/licenses.nix48
1 files changed, 38 insertions, 10 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix
index ed4d80fffac6..ee11966b0d53 100644
--- a/lib/licenses.nix
+++ b/lib/licenses.nix
@@ -28,7 +28,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "Academic Free License v3.0";
};
- agpl3 = spdx {
+ agpl3Only = spdx {
spdxId = "AGPL-3.0-only";
fullName = "GNU Affero General Public License v3.0 only";
};
@@ -85,6 +85,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = ''Beerware License'';
};
+ blueOak100 = spdx {
+ spdxId = "BlueOak-1.0.0";
+ fullName = "Blue Oak Model License 1.0.0";
+ };
+
bsd0 = spdx {
spdxId = "0BSD";
fullName = "BSD Zero Clause License";
@@ -110,6 +115,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = ''BSD 4-clause "Original" or "Old" License'';
};
+ bsdProtection = spdx {
+ spdxId = "BSD-Protection";
+ fullName = "BSD Protection License";
+ };
+
bsl11 = {
fullName = "Business Source License 1.1";
url = "https://mariadb.com/bsl11";
@@ -281,12 +291,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "European Union Public License 1.2";
};
- fdl11 = spdx {
+ fdl11Only = spdx {
spdxId = "GFDL-1.1-only";
fullName = "GNU Free Documentation License v1.1 only";
};
- fdl12 = spdx {
+ fdl12Only = spdx {
spdxId = "GFDL-1.2-only";
fullName = "GNU Free Documentation License v1.2 only";
};
@@ -296,7 +306,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "GNU Free Documentation License v1.2 or later";
};
- fdl13 = spdx {
+ fdl13Only = spdx {
spdxId = "GFDL-1.3-only";
fullName = "GNU Free Documentation License v1.3 only";
};
@@ -327,7 +337,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
free = false;
};
- gpl1 = spdx {
+ gpl1Only = spdx {
spdxId = "GPL-1.0-only";
fullName = "GNU General Public License v1.0 only";
};
@@ -337,7 +347,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "GNU General Public License v1.0 or later";
};
- gpl2 = spdx {
+ gpl2Only = spdx {
spdxId = "GPL-2.0-only";
fullName = "GNU General Public License v2.0 only";
};
@@ -362,7 +372,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "GNU General Public License v2.0 or later";
};
- gpl3 = spdx {
+ gpl3Only = spdx {
spdxId = "GPL-3.0-only";
fullName = "GNU General Public License v3.0 only";
};
@@ -426,6 +436,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
};
# Proprietary binaries; free to redistribute without modification.
+ databricks = {
+ fullName = "Databricks Proprietary License";
+ url = "https://pypi.org/project/databricks-connect";
+ free = false;
+ };
+
issl = {
fullName = "Intel Simplified Software License";
url = "https://software.intel.com/en-us/license/intel-simplified-software-license";
@@ -437,7 +453,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "JasPer License";
};
- lgpl2 = spdx {
+ lgpl2Only = spdx {
spdxId = "LGPL-2.0-only";
fullName = "GNU Library General Public License v2 only";
};
@@ -447,7 +463,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "GNU Library General Public License v2 or later";
};
- lgpl21 = spdx {
+ lgpl21Only = spdx {
spdxId = "LGPL-2.1-only";
fullName = "GNU Lesser General Public License v2.1 only";
};
@@ -457,7 +473,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "GNU Lesser General Public License v2.1 or later";
};
- lgpl3 = spdx {
+ lgpl3Only = spdx {
spdxId = "LGPL-3.0-only";
fullName = "GNU Lesser General Public License v3.0 only";
};
@@ -782,4 +798,16 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
spdxId = "ZPL-2.1";
fullName = "Zope Public License 2.1";
};
+} // {
+ # TODO: remove legacy aliases
+ agpl3 = lib.licenses.agpl3Only;
+ fdl11 = lib.licenses.fdl11Only;
+ fdl12 = lib.licenses.fdl12Only;
+ fdl13 = lib.licenses.fdl13Only;
+ gpl1 = lib.licenses.gpl1Only;
+ gpl2 = lib.licenses.gpl2Only;
+ gpl3 = lib.licenses.gpl3Only;
+ lgpl2 = lib.licenses.lgpl2Only;
+ lgpl21 = lib.licenses.lgpl21Only;
+ lgpl3 = lib.licenses.lgpl3Only;
}