Noogλe

search input

Function of the day

  • Evaluate a license expression for a given property name. The property must be defined as a boolean attribute of all licenses passed.

    Inputs

    name
    Name of the Attribute which should be checked
    permissive
    Whether to apply checks permissive or reciprocal
    license
    License expression which should be evaluated

    Type

    evaluateNamedProperty :: String -> Bool -> AttrSet -> Bool
    

    Example

    lib.licenses.evaluateNamedProperty usage example

    evaluateNamedProperty "deprecated" true (with lib.licenses; AND [ ncsa (WITH asl20 llvm-exception) ])
    => false