mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 00:12:39 +03:00
419f15b060
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.
15 lines
345 B
Bash
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
|