summary refs log tree commit diff
path: root/pkgs/development/libraries/libxml2
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-10-28 23:17:52 +0100
committerDomen Kožar <domen@dev.si>2014-10-28 23:20:59 +0100
commit419f15b060a1f157e76047feb5b9e44392eb273d (patch)
treeb9909bc20138c67433fda787c07bd847e613c2fc /pkgs/development/libraries/libxml2
parent2ee8be5db5ab0a405372928ddda2f49a33e23f49 (diff)
downloadnixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar.gz
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar.bz2
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar.lz
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar.xz
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.tar.zst
nixlib-419f15b060a1f157e76047feb5b9e44392eb273d.zip
Remove http_proxy/ftp_proxy overrides used in setup hooks.
Partially reverts eaa4db148dc402f7a124bc9c17583067710a7814. Used
together with nix-shell it results into unresolvable domains. For
example: `nix-shell -p libxml2` spawns a shell with non-working DNS.

chroot should remove such unpurities.
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r--pkgs/development/libraries/libxml2/setup-hook.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libxml2/setup-hook.sh b/pkgs/development/libraries/libxml2/setup-hook.sh
index 112dbe0c5136..4ab0dadd8b29 100644
--- a/pkgs/development/libraries/libxml2/setup-hook.sh
+++ b/pkgs/development/libraries/libxml2/setup-hook.sh
@@ -11,14 +11,6 @@ addXMLCatalogs () {
 if test -z "$libxmlHookDone"; then
     libxmlHookDone=1
 
-    # Set http_proxy and ftp_proxy to an invalid host to prevent
-    # xmllint and xsltproc from trying to download DTDs from the
-    # network even when --nonet is not given.  That would be impure.
-    # (Note that .invalid is a reserved domain guaranteed not to
-    # work.)
-    export http_proxy=http://nodtd.invalid/
-    export ftp_proxy=http://nodtd.invalid/
-
     # Set up XML_CATALOG_FILES.  An empty initial value prevents
     # xmllint and xsltproc from looking in /etc/xml/catalog.
     export XML_CATALOG_FILES