Merge pull request #225844 from natsukium/docker-compose-ls

docker-compose-language-service: init at 0.1.3

> I was about to add this one too. Although wouldn't it be better to define this in `node-packages.nix`?

nodePackages is an unmaintainable pile of code and we should not add to much more onto it.
This commit is contained in:
Sandro 2023-04-21 10:44:27 +02:00 committed by GitHub
commit 33a2158fd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib
, buildNpmPackage
, nodejs-16_x
, fetchFromGitHub
}:
let
buildNpmPackage' = buildNpmPackage.override { nodejs = nodejs-16_x; };
in
buildNpmPackage' rec {
pname = "docker-compose-language-service";
version = "0.1.3";
src = fetchFromGitHub {
owner = "microsoft";
repo = "compose-language-service";
rev = "v${version}";
hash = "sha256-faQvUHzqtCipceGnamVQIlAWCDpo7oX01/zGz9RLjMY=";
};
npmDepsHash = "sha256-gWaZMsI1HVIXKZInfgzfH8syzOwU2C6kcKvB2M6KLX4=";
meta = with lib; {
description = "Language service for Docker Compose documents";
homepage = "https://github.com/microsoft/compose-language-service";
changelog = "https://github.com/microsoft/compose-language-service/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
mainProgram = "docker-compose-langserver";
};
}

View file

@ -17315,6 +17315,8 @@ with pkgs;
llvmPackages = llvmPackages_latest;
};
docker-compose-language-service = callPackage ../development/tools/language-servers/docker-compose-language-service { };
dot-language-server = callPackage ../development/tools/language-servers/dot-language-server { };
fortls = python3.pkgs.callPackage ../development/tools/language-servers/fortls { };