Purity checking should accept $TMP and not just /tmp

wip/yesman
Tyson Whitehead 4 years ago committed by Frederik Rietdijk
parent 176d5e090a
commit fb777be7d2
  1. 6
      pkgs/build-support/wrapper-common/utils.bash

@ -69,9 +69,9 @@ badPath() {
# directory (including the build directory).
test \
"$p" != "/dev/null" -a \
"${p:0:${#NIX_STORE}}" != "$NIX_STORE" -a \
"${p:0:4}" != "/tmp" -a \
"${p:0:${#NIX_BUILD_TOP}}" != "$NIX_BUILD_TOP"
"${p#${NIX_STORE}}" = "$p" -a \
"${p#${TMP:-/tmp}}" = "$p" -a \
"${p#${NIX_BUILD_TOP}}" = "$p"
}
expandResponseParams() {

Loading…
Cancel
Save