isRedistributable
lib.licenses.isRedistributable
Docs pulled from | This Revision | 12 minutes ago
Nixpkgs manual
Check whether a license expression is redistributable.
Example
isRedistributable (with lib.licenses; (AND [ ncsa (WITH asl20 llvm-exception) ]))
=> true
Type
isRedistributable :: AttrSet -> Bool
Arguments
- [license] License expression to check if redistributable
Noogle detected
Implementation
The following is the current implementation of this function.
license:
if license.licenseType == "simple" then license.${name} else evaluateComplexProperty license