work around a nix bug

This commit is contained in:
Artturin 2022-06-29 03:41:13 +03:00
parent 238a6053c4
commit 1c4820efdd

View file

@ -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