summary refs log tree commit diff
path: root/pkgs/development/compilers/dotnet/build-dotnet.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/dotnet/build-dotnet.nix')
-rw-r--r--pkgs/development/compilers/dotnet/build-dotnet.nix10
1 files changed, 2 insertions, 8 deletions
diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix
index 69f770900fd..e25a8a1464f 100644
--- a/pkgs/development/compilers/dotnet/build-dotnet.nix
+++ b/pkgs/development/compilers/dotnet/build-dotnet.nix
@@ -130,13 +130,7 @@ stdenv.mkDerivation (finalAttrs: rec {
     };
 
     updateScript =
-      if type != "sdk" then
-        lib.warn "${pname}-${version}: only the SDK package can be updated - this script will do nothing!"
-        writeShellScript "dummy-update" ''
-          echo "Doing nothing..."
-          echo "Run the updateScript from the SDK package"
-        ''
-      else
+      if type == "sdk" then
       let
         majorVersion =
           with lib;
@@ -145,7 +139,7 @@ stdenv.mkDerivation (finalAttrs: rec {
       writeShellScript "update-dotnet-${majorVersion}" ''
         pushd pkgs/development/compilers/dotnet
         exec ${./update.sh} "${majorVersion}"
-      '';
+      '' else null;
 
     # Convert a "stdenv.hostPlatform.system" to a dotnet RID
     systemToDotnetRid = system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");