query
On this page

prefer-remote-fetch

pkgs.prefer-remote-fetch

Docs pulled from | This Revision | 12 minutes 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.

self: super:
let
  preferLocal =
    orig:
    self.lib.extendMkDerivation {
      constructDrv = orig;
      extendDrvArgs =
        finalAttrs:
        {
          preferLocalBuild ? false,
          ...
        }:
        {
          inherit preferLocalBuild;
        };
    };

in
{
  binary-cache = preferLocal super.binary-cache;
  buildenv = preferLocal super.buildenv;
  fetchfossil = preferLocal super.fetchfossil;
  fetchdocker = preferLocal super.fetchdocker;
  fetchgit = (preferLocal super.fetchgit) // {
    inherit (super.fetchgit) getRevWithTag;
  };
  fetchgx = preferLocal super.fetchgx;
  fetchhg = preferLocal super.fetchhg;
  fetchipfs = preferLocal super.fetchipfs;
  fetchrepoproject = preferLocal super.fetchrepoproject;
  fetchs3 = preferLocal super.fetchs3;
  fetchsvn = preferLocal super.fetchsvn;
  fetchurl = preferLocal super.fetchurl;
  mkNugetSource = preferLocal super.mkNugetSource;
}