Merge pull request #94213 from r-burns/cmake-language-server

cmake-language-server: fix test error on macOS
This commit is contained in:
Mario Rodas 2020-07-31 07:11:00 -05:00 committed by GitHub
commit 5e669eec80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ stdenv, buildPythonApplication, fetchFromGitHub
, poetry, pygls, pyparsing
, cmake, pytest, pytest-datadir
, fetchpatch
}:
buildPythonApplication rec {
@ -15,6 +16,12 @@ buildPythonApplication rec {
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
};
# can be removed after v0.1.2
patches = stdenv.lib.optional stdenv.isDarwin (fetchpatch {
url = "https://github.com/regen100/cmake-language-server/commit/0ec120f39127f25898ab110b43819e3e9becb8a3.patch";
sha256 = "1xbmarvsvzd61fnlap4qscnijli2rw2iqr7cyyvar2jd87z6sfp0";
});
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pygls = "^0.8.1"' 'pygls = "^0.9.0"'