summary refs log tree commit diff
path: root/pkgs/test/simple/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/test/simple/builder.sh')
-rw-r--r--pkgs/test/simple/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/test/simple/builder.sh b/pkgs/test/simple/builder.sh
index 908faec3c38..0b09a109bea 100644
--- a/pkgs/test/simple/builder.sh
+++ b/pkgs/test/simple/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
 set -x
 
 export NIX_DEBUG=1