Update licenses.nix
This commit is contained in:
parent
eedaca8ef1
commit
89ea04dc70
|
@ -1,31 +1,25 @@
|
||||||
{ lib }:
|
{ lib }:
|
||||||
|
|
||||||
lib.mapAttrs
|
lib.mapAttrs (lname: lset: let
|
||||||
(lname: lset:
|
|
||||||
let
|
|
||||||
defaultLicense = {
|
defaultLicense = {
|
||||||
shortName = lname;
|
shortName = lname;
|
||||||
free = true; # Most of our licenses are Free, explicitly declare unfree additions as such!
|
free = true; # Most of our licenses are Free, explicitly declare unfree additions as such!
|
||||||
deprecated = false;
|
deprecated = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkLicense = licenseDeclaration:
|
mkLicense = licenseDeclaration: let
|
||||||
let
|
|
||||||
applyDefaults = license: defaultLicense // license;
|
applyDefaults = license: defaultLicense // license;
|
||||||
applySpdx = license:
|
applySpdx = license:
|
||||||
if license ? spdxId
|
if license ? spdxId
|
||||||
then license // { url = "https://spdx.org/licenses/${license.spdxId}.html"; }
|
then license // { url = "https://spdx.org/licenses/${license.spdxId}.html"; }
|
||||||
else license;
|
else license;
|
||||||
applyRedistributable = license: { redistributable = license.free; } // license;
|
applyRedistributable = license: { redistributable = license.free; } // license;
|
||||||
in
|
in lib.pipe licenseDeclaration [
|
||||||
lib.pipe licenseDeclaration [
|
|
||||||
applyDefaults
|
applyDefaults
|
||||||
applySpdx
|
applySpdx
|
||||||
applyRedistributable
|
applyRedistributable
|
||||||
];
|
];
|
||||||
in
|
in mkLicense lset) ({
|
||||||
mkLicense lset)
|
|
||||||
({
|
|
||||||
/* License identifiers from spdx.org where possible.
|
/* License identifiers from spdx.org where possible.
|
||||||
* If you cannot find your license here, then look for a similar license or
|
* If you cannot find your license here, then look for a similar license or
|
||||||
* add it to this list. The URL mentioned above is a good source for inspiration.
|
* add it to this list. The URL mentioned above is a good source for inspiration.
|
||||||
|
@ -392,15 +386,17 @@ lib.mapAttrs
|
||||||
spdxId = "CECILL-C";
|
spdxId = "CECILL-C";
|
||||||
fullName = "CeCILL-C Free Software License Agreement";
|
fullName = "CeCILL-C Free Software License Agreement";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cpal10 = {
|
||||||
|
spdxId = "CPAL-1.0";
|
||||||
|
fullName = "Common Public Attribution License 1.0";
|
||||||
|
};
|
||||||
|
|
||||||
commons-clause = {
|
commons-clause = {
|
||||||
fullName = "Commons Clause License";
|
fullName = "Commons Clause License";
|
||||||
url = "https://commonsclause.com/";
|
url = "https://commonsclause.com/";
|
||||||
free = false;
|
free = false;
|
||||||
};
|
};
|
||||||
cpal10 = {
|
|
||||||
spdxId = "CPAL-1.0";
|
|
||||||
fullName = "Common Public Attribution License 1.0";
|
|
||||||
};
|
|
||||||
|
|
||||||
cpl10 = {
|
cpl10 = {
|
||||||
spdxId = "CPL-1.0";
|
spdxId = "CPL-1.0";
|
||||||
|
@ -609,6 +605,11 @@ lib.mapAttrs
|
||||||
url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
|
url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
giftware = {
|
||||||
|
spdxId = "Giftware";
|
||||||
|
fullName = "Giftware License";
|
||||||
|
};
|
||||||
|
|
||||||
hpnd = {
|
hpnd = {
|
||||||
spdxId = "HPND";
|
spdxId = "HPND";
|
||||||
fullName = "Historic Permission Notice and Disclaimer";
|
fullName = "Historic Permission Notice and Disclaimer";
|
||||||
|
@ -619,6 +620,11 @@ lib.mapAttrs
|
||||||
spdxId = "HPND-sell-variant";
|
spdxId = "HPND-sell-variant";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hpndUc = {
|
||||||
|
spdxId = "HPND-UC";
|
||||||
|
fullName = "Historical Permission Notice and Disclaimer - University of California variant";
|
||||||
|
};
|
||||||
|
|
||||||
# Intel's license, seems free
|
# Intel's license, seems free
|
||||||
iasl = {
|
iasl = {
|
||||||
spdxId = "Intel-ACPI";
|
spdxId = "Intel-ACPI";
|
||||||
|
@ -904,6 +910,11 @@ lib.mapAttrs
|
||||||
url = "https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/LICENSE.md";
|
url = "https://raw.githubusercontent.com/netdata/netdata/master/web/gui/v2/LICENSE.md";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nistSoftware = {
|
||||||
|
spdxId = "NIST-Software";
|
||||||
|
fullName = "NIST Software License";
|
||||||
|
};
|
||||||
|
|
||||||
nlpl = {
|
nlpl = {
|
||||||
spdxId = "NLPL";
|
spdxId = "NLPL";
|
||||||
fullName = "No Limit Public License";
|
fullName = "No Limit Public License";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user