query
On this page

AND

lib.licenses.AND

Docs pulled from | This Revision | 20 minutes ago


Nixpkgs manual

Create a compound licenses where the user needs to follow both licenses, eqivialent of spdx and modifier.

Inputs

licenses
Licenses required to use

Type

AND :: [AttrsSet] -> AttrSet

Example

lib.licenses.AND usage example

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

Noogle detected

Implementation

The following is the current implementation of this function.

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