query
On this page

OR

lib.licenses.OR

Docs pulled from | This Revision | 28 minutes ago


Nixpkgs manual

This should be used when there is a choice of which license expression to use. This is a disjunctive binary "OR" operator.

Inputs

licenses
Possible licenses to choose from

Type

OR :: [AttrSet] -> AttrSet

Example

lib.licenses.OR usage example

OR [ lib.licenses.mit lib.licenses.asl20 ]
=> { licenseType = "compound"; operator = "OR"; licenses = [ lib.licenses.mit lib.licenses.asl20 ] };

Noogle detected

Implementation

The following is the current implementation of this function.

OR = licenses: {
    licenseType = "compound";
    operator = "OR";
    inherit licenses;
  };