From 0fd9c93a70b89d9236662a79ed396e412769f53e Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 8 Aug 2024 07:49:58 -0700 Subject: [PATCH] Get nix-ld to work with the Roslyn analyzer --- .vscode/settings.json | 2 +- flake.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0bf84ef..8d2c0d8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,7 @@ "terminal.integrated.profiles.linux": { "nix develop": { "path": "nix", - "args": ["develop"] + "args": ["develop", "--impure"] } }, "terminal.integrated.profiles.windows": { diff --git a/flake.nix b/flake.nix index 2958128..14f8763 100644 --- a/flake.nix +++ b/flake.nix @@ -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