Get nix-ld to work with the Roslyn analyzer

This commit is contained in:
Tim Van Baak 2024-08-08 07:49:58 -07:00
parent 5b4758a4ed
commit 0fd9c93a70
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"terminal.integrated.profiles.linux": {
"nix develop": {
"path": "nix",
"args": ["develop"]
"args": ["develop", "--impure"]
}
},
"terminal.integrated.profiles.windows": {

View File

@ -10,6 +10,8 @@
in rec {
devShell = pkgs.mkShell {
DOTNET_CLI_TELEMETRY_OPTOUT = 1;
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ];
NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
packages = [
pkgs.bashInteractive
pkgs.dotnet-sdk_8