summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc/locales-builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/glibc/locales-builder.sh')
-rw-r--r--pkgs/development/libraries/glibc/locales-builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc/locales-builder.sh b/pkgs/development/libraries/glibc/locales-builder.sh
index d91f936c937..27894b09b91 100644
--- a/pkgs/development/libraries/glibc/locales-builder.sh
+++ b/pkgs/development/libraries/glibc/locales-builder.sh
@@ -1,4 +1,4 @@
-if [ -e .attrs.sh ]; then source .attrs.sh; fi
+if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
 # Glibc cannot have itself in its RPATH.
 export NIX_NO_SELF_RPATH=1