From 319736f69f10f920cec25b2b72a1aa9f6038f2a5 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 30 Jun 2024 02:27:03 +0800 Subject: [PATCH] lib.getLicenseFromSpdxId: improve documentation --- lib/meta.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/meta.nix b/lib/meta.nix index 8fa93d40d595..8e13c048a68c 100644 --- a/lib/meta.nix +++ b/lib/meta.nix @@ -287,10 +287,10 @@ rec { all (elem: !platformMatch platform elem) (pkg.meta.badPlatforms or []); /** - Get the corresponding attribute in lib.licenses - from the SPDX ID. - For SPDX IDs, see - https://spdx.org/licenses + Get the corresponding attribute in lib.licenses from the SPDX ID + or warn and fallback to `{ shortName = ; }`. + + For SPDX IDs, see https://spdx.org/licenses # Type