diff options
| author | Silvan Mosberger <contact@infinisil.com> | 2024-08-25 00:57:44 +0200 |
|---|---|---|
| committer | Silvan Mosberger <contact@infinisil.com> | 2024-08-25 00:57:44 +0200 |
| commit | f55a4b99ef73df3b17ae5e951198949a880cf3ab (patch) | |
| tree | 7c8b99d64f2ff09cc54f023f00220785d786f5f9 /lib/default.nix | |
| parent | lib.meta.licensesSpdx: mapping from SPDX ID to licenses (diff) | |
| download | nixpkgs-f55a4b99ef73df3b17ae5e951198949a880cf3ab.tar.gz | |
lib.meta: Minor SPDX license function improvements
- Expose `lib.licensesSpdx`
- Create bindings for the needed internal functions
- Mention that some SPDX licenses might be missing (in the future I hope
we can autogenerate the Nixpkgs license list from some SPDX endpoint
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index 63a31101eee7..0ff3a3980745 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -123,7 +123,8 @@ let inherit (self.derivations) lazyDerivation optionalDrvAttr; inherit (self.meta) addMetaAttrs dontDistribute setName updateName appendToName mapDerivationAttrset setPrio lowPrio lowPrioSet hiPrio - hiPrioSet getLicenseFromSpdxId getLicenseFromSpdxIdOr getExe getExe'; + hiPrioSet licensesSpdx getLicenseFromSpdxId getLicenseFromSpdxIdOr + getExe getExe'; inherit (self.filesystem) pathType pathIsDirectory pathIsRegularFile packagesFromDirectoryRecursive; inherit (self.sources) cleanSourceFilter |
