work around a nix bug
This commit is contained in:
parent
238a6053c4
commit
1c4820efdd
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@ if [ -n "$__structuredAttrs" ]; then
|
|||
# ex: out=/nix/store/...
|
||||
export "$outputName=${outputs[$outputName]}"
|
||||
done
|
||||
# $NIX_ATTRS_JSON_FILE points to the wrong location in sandbox
|
||||
# https://github.com/NixOS/nix/issues/6736
|
||||
export NIX_ATTRS_JSON_FILE="$NIX_BUILD_TOP/.attrs.json"
|
||||
export NIX_ATTRS_SH_FILE="$NIX_BUILD_TOP/.attrs.sh"
|
||||
else
|
||||
: ${outputs:=out}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue