diff options
| author | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-06-26 08:42:44 +0800 |
|---|---|---|
| committer | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-06-30 02:59:58 +0800 |
| commit | 10d2e6c906ab535232549e23546aa29fd6f9cf76 (patch) | |
| tree | 98017ab8963b280d80f28632388700d5a5823cad /lib/default.nix | |
| parent | lib.getLicenseFromSpdxId: improve documentation (diff) | |
| download | nixpkgs-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.nix | 2 |
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 |
