nixpkgs/pkgs/tools/text/sgml/opensp/setup-hook.sh
Domen Kožar 419f15b060 Remove http_proxy/ftp_proxy overrides used in setup hooks.
Partially reverts eaa4db148d. 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.
2014-10-28 23:20:59 +01:00

15 lines
345 B
Bash

addSGMLCatalogs () {
if test -d $1/sgml/dtd; then
for i in $(find $1/sgml/dtd -name docbook.cat); do
export SGML_CATALOG_FILES="${SGML_CATALOG_FILES:+:}$i"
done
fi
}
if test -z "$sgmlHookDone"; then
sgmlHookDone=1
export SGML_CATALOG_FILES
envHooks=(${envHooks[@]} addSGMLCatalogs)
fi