summary refs log tree commit diff
path: root/pkgs/build-support/fetchsvn
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-12-31 08:10:28 +0100
committerJörg Thalheim <joerg@thalheim.io>2019-01-18 14:41:10 +0000
commiteac6797380af1f0927ab683e2375429826d34e76 (patch)
tree4d292ad4c8eac2df780174bbcbe143802be68de9 /pkgs/build-support/fetchsvn
parent487d2a7ccdf520e60b77809681e4ca377a7b741d (diff)
downloadnixpkgs-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/fetchsvn')
-rw-r--r--pkgs/build-support/fetchsvn/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchsvn/default.nix b/pkgs/build-support/fetchsvn/default.nix
index da57d581dad..194ce3b39b1 100644
--- a/pkgs/build-support/fetchsvn/default.nix
+++ b/pkgs/build-support/fetchsvn/default.nix
@@ -1,6 +1,7 @@
 {stdenvNoCC, subversion, glibcLocales, sshSupport ? false, openssh ? null}:
-{url, rev ? "HEAD", md5 ? "", sha256 ? "",
- ignoreExternals ? false, ignoreKeywords ? false, name ? null}:
+{url, rev ? "HEAD", md5 ? "", sha256 ? ""
+, ignoreExternals ? false, ignoreKeywords ? false, name ? null
+, preferLocalBuild ? true }:
 
 let
   repoName = with stdenvNoCC.lib;
@@ -40,5 +41,5 @@ stdenvNoCC.mkDerivation {
   inherit url rev sshSupport openssh ignoreExternals ignoreKeywords;
 
   impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
-  preferLocalBuild = true;
+  inherit preferLocalBuild;
 }