query
On this page

OR

lib.licenses.OR

Docs pulled from | This Revision | 31 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.

Example

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

Type

OR :: List -> AttrSet

Arguments

  • [licenses] Possible licenses to choose from

Noogle detected

Implementation

The following is the current implementation of this function.

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