9 buildDotnetModule rec {
13 src = fetchFromGitHub {
17 hash = "sha256-4iXabFp0LqJ8TXOrqeD+oTAocg6ZTIfijfX3s3fMJuI=";
20 dotnet-sdk = dotnetCorePackages.sdk_6_0;
22 projectFile = [ "src/NuGet/Microsoft.Net.Compilers.Toolset/Microsoft.Net.Compilers.Toolset.Package.csproj" ];
24 nugetDeps = ./deps.nix;
26 dontDotnetFixup = true;
28 nativeBuildInputs = [ unzip ];
31 sed -i 's/latestPatch/latestFeature/' global.json
37 dotnet msbuild -v:m -t:pack \
38 -p:Configuration=Release \
39 -p:RepositoryUrl="${meta.homepage}" \
40 -p:RepositoryCommit="v${version}" \
41 src/NuGet/Microsoft.Net.Compilers.Toolset/Microsoft.Net.Compilers.Toolset.Package.csproj
47 pkg="$out/lib/dotnet/microsoft.net.compilers.toolset/${version}"
48 mkdir -p "$out/bin" "$pkg"
50 unzip -q artifacts/packages/Release/Shipping/Microsoft.Net.Compilers.Toolset.${version}-dev.nupkg \
52 # nupkg has 0 permissions for a bunch of things
55 makeWrapper ${mono}/bin/mono $out/bin/csc \
56 --add-flags "$pkg/tasks/net472/csc.exe"
57 makeWrapper ${mono}/bin/mono $out/bin/vbc \
58 --add-flags "$pkg/tasks/net472/vbc.exe"
62 description = ".NET C# and Visual Basic compiler";
63 homepage = "https://github.com/dotnet/roslyn";
65 license = licenses.mit;
66 maintainers = with maintainers; [ corngood ];