From 36f29a2229e45a96681e9e952ec1072c8895306e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 16 Aug 2024 08:23:34 +0200 Subject: [PATCH] csharp-ls: clean derivation, add testVersion --- pkgs/by-name/cs/csharp-ls/package.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/cs/csharp-ls/package.nix b/pkgs/by-name/cs/csharp-ls/package.nix index 5cae31845563..398a0f20f4a4 100644 --- a/pkgs/by-name/cs/csharp-ls/package.nix +++ b/pkgs/by-name/cs/csharp-ls/package.nix @@ -1,6 +1,8 @@ -{ lib -, buildDotnetGlobalTool -, dotnetCorePackages +{ + lib, + buildDotnetGlobalTool, + dotnetCorePackages, + nix-update-script, }: let inherit (dotnetCorePackages) sdk_8_0; @@ -15,13 +17,17 @@ buildDotnetGlobalTool rec { dotnet-sdk = sdk_8_0; dotnet-runtime = sdk_8_0; - meta = with lib; { + passthru.tests = { + updateScript = nix-update-script { }; + }; + + meta = { description = "Roslyn-based LSP language server for C#"; mainProgram = "csharp-ls"; homepage = "https://github.com/razzmatazz/csharp-language-server"; changelog = "https://github.com/razzmatazz/csharp-language-server/releases/tag/v${version}"; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [ GaetanLepage ]; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; }