From 8d21ee745e6e820b6cfa8ee80e9c861542eb8d7e Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Tue, 13 May 2025 13:47:19 -0300 Subject: [PATCH 1/2] licenses: add gpl2UBDLPlus Signed-off-by: Fernando Rodrigues --- lib/licenses.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/licenses.nix b/lib/licenses.nix index 2aa16bc0f305..38fb12d2a887 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -651,6 +651,11 @@ lib.mapAttrs mkLicense ( url = "https://fedoraproject.org/wiki/Licensing/GPL_Classpath_Exception"; }; + gpl2UBDLPlus = { + fullName = "GNU General Public License v3.0 or later (with UBDL exception)"; + url = "https://spdx.org/licenses/UBDL-exception.html"; + }; + gpl2Oss = { fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)"; url = "https://www.mysql.com/about/legal/licensing/foss-exception"; From 2b4700159d21ad71a92fbd99b4ba75e27460b245 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Tue, 18 Mar 2025 08:22:52 -0300 Subject: [PATCH 2/2] ipxe: correct licensing information Updates the licensing information to match Fedora's SPDX identifier. This is necessary because of IPXE's built-in EFI headers and other third-party code embedded in IPXE. Please note that Nixpkgs does not yet have a way to programatically identify `GPL-2.0-or-later WITH UBDL-exception` or the `AND` and `OR` logical identifiers in SPDX, so the best we can do is express all of the licenses in a list and add a comment for UBDL. Reported-by: sanana Signed-off-by: Fernando Rodrigues --- pkgs/by-name/ip/ipxe/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ip/ipxe/package.nix b/pkgs/by-name/ip/ipxe/package.nix index fb5b02ef33c1..4bdb023bae93 100644 --- a/pkgs/by-name/ip/ipxe/package.nix +++ b/pkgs/by-name/ip/ipxe/package.nix @@ -142,7 +142,15 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Network boot firmware"; homepage = "https://ipxe.org/"; - license = lib.licenses.gpl2Only; + license = with lib.licenses; [ + bsd2 + bsd3 + gpl2Only + gpl2UBDLPlus + isc + mit + mpl11 + ]; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ sigmasquadron ]; };