diff --git a/pkgs/development/compilers/dotnet/update.sh b/pkgs/development/compilers/dotnet/update.sh index 66520f4658fd5..ce28f952cb75d 100755 --- a/pkgs/development/compilers/dotnet/update.sh +++ b/pkgs/development/compilers/dotnet/update.sh @@ -283,7 +283,7 @@ update() { if [ "$patch_specified" == false ] && [ -f "$output" ]; then local -a versions IFS= readarray -d '' versions < <( - nix-instantiate --eval --json -E "with (import $output { + nix-instantiate --eval --json -E "{ output }: with (import output { buildAspNetCore = { ... }: {}; buildNetSdk = { version, ... }: { inherit version; }; buildNetRuntime = { version, ... }: { inherit version; }; @@ -291,7 +291,7 @@ update() { }); (x: builtins.deepSeq x x) [ runtime_${major_minor_underscore}.version sdk_${major_minor_underscore}.version - ]" | jq --raw-output0 .[]) + ]" --argstr output "$output" | jq --raw-output0 .[]) if [[ "${versions[0]}" == "$major_minor_patch" && "${versions[1]}" == "${sdk_versions[0]}" ]]; then echo "Nothing to update." return