diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-12-31 08:10:28 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-01-18 14:41:10 +0000 |
commit | eac6797380af1f0927ab683e2375429826d34e76 (patch) | |
tree | 4d292ad4c8eac2df780174bbcbe143802be68de9 /pkgs/build-support/fetchipfs | |
parent | 487d2a7ccdf520e60b77809681e4ca377a7b741d (diff) | |
download | nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar.gz nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar.bz2 nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar.lz nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar.xz nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.tar.zst nixpkgs-eac6797380af1f0927ab683e2375429826d34e76.zip |
prefer-fetch-remote: an overlay to fetch on remote builders
This is useful when running tools like NixOps or nix-review on workstations where the upload to the builder is significantly slower then downloading the source on the builder itself.
Diffstat (limited to 'pkgs/build-support/fetchipfs')
-rw-r--r-- | pkgs/build-support/fetchipfs/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/build-support/fetchipfs/default.nix b/pkgs/build-support/fetchipfs/default.nix index dc894979422..7a66999ec56 100644 --- a/pkgs/build-support/fetchipfs/default.nix +++ b/pkgs/build-support/fetchipfs/default.nix @@ -14,6 +14,7 @@ , meta ? {} , port ? "8080" , postFetch ? "" +, preferLocalBuild ? true }: assert sha512 != "" -> builtins.compareVersions "1.11" builtins.nixVersion <= 0; @@ -42,11 +43,10 @@ if (!hasHash) then throw "Specify sha for fetchipfs fixed-output derivation" els postFetch ipfs url - port; + port + meta; # Doing the download on a remote machine just duplicates network # traffic, so don't do that. - preferLocalBuild = true; - - inherit meta; + inherit preferLocalBuild; } |