+2
−1
Loading
Nixpkgs does not contain an entry in lib.licenses for every SPDX license, so it is expected that a valid SPDX id would yield no proper result from getLicenseFromSpdxId. Hence, we should set spdxId in the default value. Users that think their SPDX ID may be invalid should rather use getLicenseFromSpdxIdOr.