1 # An overlay that download sources on remote builder.
2 # This is useful when the evaluating machine has a slow
3 # upload while the builder can fetch faster directly from the source.
4 # Usage: Put the following snippet in your usual overlay definition:
7 # (super.prefer-remote-fetch self super)
8 # Full configuration example for your own account:
10 # $ mkdir ~/.config/nixpkgs/overlays/
11 # $ echo 'self: super: super.prefer-remote-fetch self super' > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix
14 binary-cache = args: super.binary-cache ({ preferLocalBuild = false; } // args);
15 buildenv = args: super.buildenv ({ preferLocalBuild = false; } // args);
16 fetchfossil = args: super.fetchfossil ({ preferLocalBuild = false; } // args);
17 fetchdocker = args: super.fetchdocker ({ preferLocalBuild = false; } // args);
18 fetchgit = args: super.fetchgit ({ preferLocalBuild = false; } // args);
19 fetchgx = args: super.fetchgx ({ preferLocalBuild = false; } // args);
20 fetchhg = args: super.fetchhg ({ preferLocalBuild = false; } // args);
21 fetchipfs = args: super.fetchipfs ({ preferLocalBuild = false; } // args);
22 fetchrepoproject = args: super.fetchrepoproject ({ preferLocalBuild = false; } // args);
23 fetchs3 = args: super.fetchs3 ({ preferLocalBuild = false; } // args);
24 fetchsvn = args: super.fetchsvn ({ preferLocalBuild = false; } // args);
25 fetchurl = args: super.fetchurl ({ preferLocalBuild = false; } // args);