2021-11-17 18:25:17 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 06:18:00 +01:00
|
|
|
, fetchFromGitHub
|
2021-11-17 18:25:17 +00:00
|
|
|
, buildDotnetModule
|
|
|
|
, dotnetCorePackages
|
|
|
|
, autoPatchelfHook
|
2020-04-24 06:18:00 +01:00
|
|
|
, openssl
|
|
|
|
, icu
|
|
|
|
}:
|
|
|
|
|
2021-11-17 18:25:17 +00:00
|
|
|
buildDotnetModule rec {
|
2020-04-24 06:18:00 +01:00
|
|
|
pname = "python-language-server";
|
2021-11-17 18:25:17 +00:00
|
|
|
version = "2021-09-08";
|
2020-04-24 06:18:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoft";
|
|
|
|
repo = "python-language-server";
|
2021-11-17 18:25:17 +00:00
|
|
|
rev = "26ea18997f45f7d7bc5a3c5a9efc723a8dbb02fa";
|
|
|
|
sha256 = "1m8pf9k20wy4fzv27v3bswvc8s01ag6ka2qm9nn6bgq0s0lq78mh";
|
2020-04-24 06:18:00 +01:00
|
|
|
};
|
|
|
|
|
2021-11-17 18:25:17 +00:00
|
|
|
projectFile = "src/LanguageServer/Impl/Microsoft.Python.LanguageServer.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
2020-04-24 06:18:00 +01:00
|
|
|
|
2021-11-17 18:25:17 +00:00
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_3_1;
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_3_1;
|
2021-05-03 18:17:00 +01:00
|
|
|
|
2021-11-17 18:25:17 +00:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
buildInputs = [ stdenv.cc.cc.lib ];
|
|
|
|
runtimeDeps = [ openssl icu ];
|
2020-04-24 06:18:00 +01:00
|
|
|
|
|
|
|
postFixup = ''
|
2021-11-17 18:25:17 +00:00
|
|
|
mv $out/bin/Microsoft.Python.LanguageServer $out/bin/python-language-server
|
2020-04-24 06:18:00 +01:00
|
|
|
'';
|
|
|
|
|
2021-11-17 18:25:17 +00:00
|
|
|
passthru.updateScript = ./updater.sh;
|
2020-04-24 06:18:00 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 06:18:00 +01:00
|
|
|
description = "Microsoft Language Server for Python";
|
|
|
|
homepage = "https://github.com/microsoft/python-language-server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thomasjm ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|