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 fetchurl = args: super.fetchurl ({ preferLocalBuild = false; } // args);
15 fetchgit = args: super.fetchgit ({ preferLocalBuild = false; } // args);
16 fetchhg = args: super.fetchhg ({ preferLocalBuild = false; } // args);
17 fetchsvn = args: super.fetchsvn ({ preferLocalBuild = false; } // args);
18 fetchipfs = args: super.fetchipfs ({ preferLocalBuild = false; } // args);