work around a nix bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user