From 49d3cbee1836e1f4d4b152c9c7d922f23d278947 Mon Sep 17 00:00:00 2001 From: mdarocha Date: Mon, 25 Apr 2022 19:23:09 +0200 Subject: [PATCH] omnisharp-roslyn: fix errors related to dlls Mimick the hack in the upstream omnisharp repository, which fixes omnisharp giving errors about being unable to find specific libraries --- pkgs/development/tools/omnisharp-roslyn/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/omnisharp-roslyn/default.nix b/pkgs/development/tools/omnisharp-roslyn/default.nix index d40248a5234..a76e57ad426 100644 --- a/pkgs/development/tools/omnisharp-roslyn/default.nix +++ b/pkgs/development/tools/omnisharp-roslyn/default.nix @@ -95,6 +95,11 @@ in stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin cp -r bin/Release/OmniSharp.Stdio.Driver/net6.0 $out/src + + # Delete files to mimick hacks in https://github.com/OmniSharp/omnisharp-roslyn/blob/bdc14ca/build.cake#L594 + rm $out/src/NuGet.*.dll + rm $out/src/System.Configuration.ConfigurationManager.dll + makeWrapper $out/src/OmniSharp $out/bin/omnisharp \ --prefix DOTNET_ROOT : ${dotnet-sdk} \ --suffix PATH : ${dotnet-sdk}/bin