query
On this page

addMetaAttrs

lib.meta.addMetaAttrs

Docs pulled from | This Revision | about 1 hour ago


Add to or override the meta attributes of the given derivation.

Inputs

newAttrs

1. Function argument

drv

2. Function argument

Examples

lib.meta.addMetaAttrs usage example

addMetaAttrs {description = "Bla blah";} somePkg

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

addMetaAttrs =
    newAttrs: drv:
    if drv ? overrideAttrs then
      drv.overrideAttrs (old: {
        meta = (old.meta or { }) // newAttrs;
      })
    else
      drv // { meta = (drv.meta or { }) // newAttrs; };