···130130 };
131131132132 updateScript =
133133- if type != "sdk" then
134134- lib.warn "${pname}-${version}: only the SDK package can be updated - this script will do nothing!"
135135- writeShellScript "dummy-update" ''
136136- echo "Doing nothing..."
137137- echo "Run the updateScript from the SDK package"
138138- ''
139139- else
133133+ if type == "sdk" then
140134 let
141135 majorVersion =
142136 with lib;
···145139 writeShellScript "update-dotnet-${majorVersion}" ''
146140 pushd pkgs/development/compilers/dotnet
147141 exec ${./update.sh} "${majorVersion}"
148148- '';
142142+ '' else null;
149143150144 # Convert a "stdenv.hostPlatform.system" to a dotnet RID
151145 systemToDotnetRid = system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");