depot/third_party/nixpkgs/pkgs/development/dotnet-modules/python-language-server/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

45 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, buildDotnetModule
, dotnetCorePackages
, autoPatchelfHook
, openssl
, icu
}:
buildDotnetModule rec {
pname = "python-language-server";
version = "2021-09-08";
src = fetchFromGitHub {
owner = "microsoft";
repo = "python-language-server";
rev = "26ea18997f45f7d7bc5a3c5a9efc723a8dbb02fa";
sha256 = "1m8pf9k20wy4fzv27v3bswvc8s01ag6ka2qm9nn6bgq0s0lq78mh";
};
projectFile = "src/LanguageServer/Impl/Microsoft.Python.LanguageServer.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_3_1;
dotnet-runtime = dotnetCorePackages.runtime_3_1;
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ stdenv.cc.cc.lib ];
runtimeDeps = [ openssl icu ];
postFixup = ''
mv $out/bin/Microsoft.Python.LanguageServer $out/bin/python-language-server
'';
passthru.updateScript = ./updater.sh;
meta = with lib; {
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" ];
};
}