query
On this page

replaceDependency

pkgs.replaceDependency

Docs pulled from | This Revision | 9 days ago


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

Implementation

The following is the current implementation of this function.

{
      drv,
      oldDependency,
      newDependency,
      verbose ? true,
    }:
    replaceDependencies {
      inherit drv verbose;
      replacements = [
        {
          inherit oldDependency newDependency;
        }
      ];
      # When newDependency depends on drv, instead of causing infinite recursion, keep it as is.
      cutoffPackages = [ newDependency ];
    }