query
On this page

hiPrio

lib.hiPrio

Docs pulled from | This Revision | 12 minutes ago


Nixpkgs manual

Increase the nix-env priority of the package, i.e., this version/variant of the package will be preferred.

Inputs

drv

1. Function argument

Type

hiPrio :: Derivation -> Derivation
(lib.meta.hiPrio)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

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