From 36fc03edb6ad8f9c5b29bfba43d11d8526e4f682 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Wed, 20 Jan 2016 02:17:29 +0100 Subject: [PATCH] fetchgit: import impure GIT_PROXY_COMMAND and SOCKS_SERVER, fixes #8605 These environment variables allow using fetchgit with git:// URLs using the SOCKS proxy technique described in 'Using Git with a SOCKS proxy': http://www.patthoyts.tk/blog/using-git-with-socks-proxy.html Briefly, GIT_PROXY_COMMAND is set to a script which invokes connect[1], which reads SOCKS_PROXY, which might be pointing to a local instance of 'ssh -D'. [1] pkgs/tools/networking/connect --- pkgs/build-support/fetchgit/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 127693d42f2..7f98c97fc55 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -61,7 +61,7 @@ stdenv.mkDerivation { # easy proxy configuration. This is impure, but a fixed-output # derivation like fetchurl is allowed to do so since its result is # by definition pure. - "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy" + "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy" "GIT_PROXY_COMMAND" "SOCKS_SERVER" ]; preferLocalBuild = true;