nixos-config/templates/dotnet.nix

19 lines
497 B
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
with pkgs;
let
2020-09-23 13:19:19 +02:00
dotnet-combined = with dotnetCorePackages; combinePackages [ sdk_3_1 ];
2020-08-25 21:35:23 +02:00
dotnetRoot = "${dotnet-combined}";
dotnetSdk = "${dotnet-combined}/sdk";
2020-08-25 21:35:23 +02:00
dotnetBinary = "${dotnetRoot}/bin/dotnet";
2024-05-26 16:45:38 +02:00
in
{
2020-09-23 13:19:19 +02:00
home.packages = [ dotnet-combined ];
2019-10-21 16:50:10 +02:00
home.sessionVariables = {
DOTNET_ROOT = dotnetRoot;
MSBuildSdksPath = "${dotnetSdk}/$(${dotnetBinary} --version)/Sdks";
MSBUILD_EXE_PATH = "${dotnetSdk}/$(${dotnetBinary} --version)/MSBuild.dll";
2019-12-12 15:41:40 +01:00
};
2019-10-19 12:55:35 +02:00
}