2020-01-17 14:54:22 +01:00
|
|
|
/*
|
|
|
|
How to combine packages for use in development:
|
2021-09-26 23:06:38 +02:00
|
|
|
dotnetCombined = with dotnetCorePackages; combinePackages [ sdk_3_1 sdk_5_0 aspnetcore_5_0 ];
|
2021-04-14 20:01:52 +02:00
|
|
|
|
2022-03-14 12:49:47 +01:00
|
|
|
Hashes and urls below are retrieved from:
|
2021-04-14 20:01:52 +02:00
|
|
|
https://dotnet.microsoft.com/download/dotnet
|
2020-01-17 14:54:22 +01:00
|
|
|
*/
|
2022-05-10 14:45:41 +02:00
|
|
|
{ callPackage, icu70, icu }:
|
2020-01-17 14:54:22 +01:00
|
|
|
let
|
2020-07-16 23:07:25 +02:00
|
|
|
buildDotnet = attrs: callPackage (import ./build-dotnet.nix attrs) {};
|
2022-07-15 16:53:52 +02:00
|
|
|
buildAttrs = {
|
|
|
|
buildAspNetCore = attrs: buildDotnet (attrs // { type = "aspnetcore"; });
|
|
|
|
buildNetRuntime = attrs: buildDotnet (attrs // { type = "runtime"; });
|
|
|
|
buildNetSdk = attrs: buildDotnet (attrs // { type = "sdk"; });
|
|
|
|
};
|
|
|
|
|
2022-08-05 15:40:43 +02:00
|
|
|
## Files in versions/ are generated automatically by update.sh ##
|
2022-07-15 16:53:58 +02:00
|
|
|
dotnet_3_1 = import ./versions/3.1.nix (buildAttrs // { icu = icu70; });
|
|
|
|
dotnet_5_0 = import ./versions/5.0.nix (buildAttrs // { inherit icu; });
|
|
|
|
dotnet_6_0 = import ./versions/6.0.nix (buildAttrs // { inherit icu; });
|
2022-08-17 15:39:50 +02:00
|
|
|
dotnet_7_0 = import ./versions/7.0.nix (buildAttrs // { inherit icu; });
|
2020-04-26 07:41:02 +02:00
|
|
|
in
|
|
|
|
rec {
|
2020-07-16 23:07:25 +02:00
|
|
|
combinePackages = attrs: callPackage (import ./combine-packages.nix attrs) {};
|
2020-01-17 14:54:22 +01:00
|
|
|
|
2021-09-26 23:06:38 +02:00
|
|
|
# EOL
|
2021-11-09 10:52:16 +01:00
|
|
|
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 3.1 (LTS), 5.0 (Current) or 6.0 (LTS)";
|
|
|
|
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 3.1 (LTS), 5.0 (Current) or 6.0 (LTS)";
|
|
|
|
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 3.1 (LTS), 5.0 (Current) or 6.0 (LTS)";
|
2022-08-17 15:39:50 +02:00
|
|
|
} // dotnet_3_1 // dotnet_5_0 // dotnet_6_0 // dotnet_7_0
|