query
On this page

isFree

lib.licenses.isFree

Docs pulled from | This Revision | 12 minutes ago


Nixpkgs manual

Check whether a license expression is free.

Example

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

Type

isFree :: AttrSet -> Bool

Arguments

  • [license] License expression to check if free

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

license:
    if license.licenseType == "simple" then license.${name} else evaluateComplexProperty license