diff --git a/pkgs/by-name/do/dotnet-outdated/package.nix b/pkgs/by-name/do/dotnet-outdated/package.nix index dda5a0f75ffe..2570178588bb 100644 --- a/pkgs/by-name/do/dotnet-outdated/package.nix +++ b/pkgs/by-name/do/dotnet-outdated/package.nix @@ -3,10 +3,7 @@ , buildDotnetModule , dotnetCorePackages }: -let - dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0 ]; - -in buildDotnetModule rec { +buildDotnetModule rec { pname = "dotnet-outdated"; version = "4.6.4"; @@ -17,7 +14,7 @@ in buildDotnetModule rec { hash = "sha256-Ah5VOCIkSRkeDWk/KYHIc/OELo0T/HuJl0LEUiumlu0="; }; - inherit dotnet-sdk; + dotnet-sdk = dotnetCorePackages.sdk_8_0; dotnet-runtime = dotnetCorePackages.runtime_8_0; useDotnetFromEnv = true; @@ -26,6 +23,7 @@ in buildDotnetModule rec { projectFile = "src/DotNetOutdated/DotNetOutdated.csproj"; executables = "dotnet-outdated"; + dotnetFlags = [ "-p:TargetFrameworks=net8.0" ]; dotnetInstallFlags = [ "--framework" "net8.0" ]; meta = with lib; {