nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDotnetGlobalTool,
4 dotnetCorePackages,
5 versionCheckHook,
6 nix-update-script,
7}:
8let
9 dotnet-sdk = dotnetCorePackages.sdk_10_0;
10in
11
12buildDotnetGlobalTool rec {
13 pname = "csharp-ls";
14 version = "0.21.0";
15
16 nugetHash = "sha256-XFzTJ7UWaFQEmFmdY/zY4zjKZaKK9aUq4Zbt3h+19bg=";
17
18 inherit dotnet-sdk;
19 dotnet-runtime = dotnet-sdk;
20
21 nativeInstallCheckInputs = [
22 versionCheckHook
23 ];
24 doInstallCheck = true;
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 description = "Roslyn-based LSP language server for C#";
30 mainProgram = "csharp-ls";
31 homepage = "https://github.com/razzmatazz/csharp-language-server";
32 changelog = "https://github.com/razzmatazz/csharp-language-server/releases/tag/v${version}";
33 license = lib.licenses.mit;
34 platforms = lib.platforms.unix;
35 maintainers = with lib.maintainers; [ GaetanLepage ];
36 badPlatforms = [
37 # Crashes immediately at runtime
38 # terminated by signal SIGKILL (Forced quit)
39 # https://github.com/razzmatazz/csharp-language-server/issues/211
40 "aarch64-darwin"
41 ];
42 };
43}