Skip to content

Commit

Permalink
cmake-language-server: init at 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau authored and jonringer committed May 29, 2020
1 parent f3ee91d commit ec905d0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/development/tools/cmake-language-server/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv, buildPythonApplication, fetchFromGitHub
, poetry, pygls, pyparsing
, cmake, pytest, pytest-datadir
}:

buildPythonApplication rec {
pname = "cmake-language-server";
version = "0.1.1";
format = "pyproject";

src = fetchFromGitHub {
owner = "regen100";
repo = pname;
rev = "v${version}";
sha256 = "09rijjksx07inbwxjinrsqihkxb011l2glysasmwpkhy0rmmhbcm";
};

nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ pygls pyparsing ];

checkInputs = [ cmake pytest pytest-datadir ];
dontUseCmakeConfigure = true;
checkPhase = "pytest";

meta = with stdenv.lib; {
homepage = "https://github.com/regen100/cmake-language-server";
description = "CMake LSP Implementation";
license = licenses.mit;
maintainers = with maintainers; [ metadark ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10228,6 +10228,8 @@ in

cmake-format = python3Packages.callPackage ../development/tools/cmake-format { };

cmake-language-server = python3Packages.callPackage ../development/tools/cmake-language-server { };

# Does not actually depend on Qt 5
inherit (kdeFrameworks) extra-cmake-modules kapidox kdoctools;

Expand Down

0 comments on commit ec905d0

Please sign in to comment.