mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
32 lines
807 B
Nix
32 lines
807 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|