summaryrefslogtreecommitdiff
path: root/lib/default.nix
diff options
context:
space:
mode:
authorYueh-Shun Li <shamrocklee@posteo.net>2024-06-26 08:42:44 +0800
committerYueh-Shun Li <shamrocklee@posteo.net>2024-06-30 02:59:58 +0800
commit10d2e6c906ab535232549e23546aa29fd6f9cf76 (patch)
tree98017ab8963b280d80f28632388700d5a5823cad /lib/default.nix
parentlib.getLicenseFromSpdxId: improve documentation (diff)
downloadnixpkgs-10d2e6c906ab535232549e23546aa29fd6f9cf76.tar.gz
lib.getLicenseFromSpdxIdOr: init
Add lib.meta.getLicenseFromSpdxIdOr as a variant of lib.meta.getLicenseFromSpdxId that explicitly state the default (fallback) value if there's no license matching the given SPDX ID.
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 9c6f886c9ee4..939cb1306464 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -120,7 +120,7 @@ let
inherit (self.derivations) lazyDerivation optionalDrvAttr;
inherit (self.meta) addMetaAttrs dontDistribute setName updateName
appendToName mapDerivationAttrset setPrio lowPrio lowPrioSet hiPrio
- hiPrioSet getLicenseFromSpdxId getExe getExe';
+ hiPrioSet getLicenseFromSpdxId getLicenseFromSpdxIdOr getExe getExe';
inherit (self.filesystem) pathType pathIsDirectory pathIsRegularFile
packagesFromDirectoryRecursive;
inherit (self.sources) cleanSourceFilter