query
On this page

containsLicenses

lib.licenses.containsLicenses

Docs pulled from | This Revision | 31 minutes ago


Nixpkgs manual

Check whether any of the given licenses is required in the license expression.

Example

containsLicenses [ lib.licenses.asl20 ] (with lib.licenses; (AND [ ncsa (WITH asl20 llvm-exception) ]))
=> true

Type

containsLicenses :: List -> AttrSet -> Bool

Arguments

  • [licenses] List of licenses to look
  • [license] License expression to check

Noogle detected

Implementation

The following is the current implementation of this function.

containsLicenses = licenses: evaluateProperty (x: lib.lists.elem x licenses) false;