hiPrio
lib.hiPrio
Docs pulled from | This Revision | 3 days 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
Noogle detected
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; }