2020-04-24 23:36:52 +00:00
|
|
|
/*
|
|
|
|
How to combine packages for use in development:
|
2021-10-17 09:34:42 +00:00
|
|
|
dotnetCombined = with dotnetCorePackages; combinePackages [ sdk_3_1 sdk_5_0 aspnetcore_5_0 ];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
Hashes and urls below are retrieved from:
|
2021-04-17 00:35:05 +00:00
|
|
|
https://dotnet.microsoft.com/download/dotnet
|
2020-04-24 23:36:52 +00:00
|
|
|
*/
|
2022-05-18 14:49:53 +00:00
|
|
|
{ callPackage, icu70, icu }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2020-08-20 17:08:02 +00:00
|
|
|
buildDotnet = attrs: callPackage (import ./build-dotnet.nix attrs) {};
|
2022-08-21 13:32:41 +00:00
|
|
|
buildAttrs = {
|
|
|
|
buildAspNetCore = attrs: buildDotnet (attrs // { type = "aspnetcore"; });
|
|
|
|
buildNetRuntime = attrs: buildDotnet (attrs // { type = "runtime"; });
|
|
|
|
buildNetSdk = attrs: buildDotnet (attrs // { type = "sdk"; });
|
|
|
|
};
|
|
|
|
|
|
|
|
## Files in versions/ are generated automatically by update.sh ##
|
|
|
|
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-09-09 14:08:57 +00:00
|
|
|
dotnet_7_0 = import ./versions/7.0.nix (buildAttrs // { inherit icu; });
|
2020-05-03 17:38:23 +00:00
|
|
|
in
|
|
|
|
rec {
|
2020-08-20 17:08:02 +00:00
|
|
|
combinePackages = attrs: callPackage (import ./combine-packages.nix attrs) {};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
# EOL
|
2021-12-06 16:07:01 +00: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-09-09 14:08:57 +00:00
|
|
|
} // dotnet_3_1 // dotnet_5_0 // dotnet_6_0 // dotnet_7_0
|