Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenv
3, fetchFromGitHub
4, buildDotnetModule
5, dotnetCorePackages
6, stdenvNoCC
7, autoPatchelfHook
8, openssl
9, icu
10}:
11
12buildDotnetModule rec {
13 pname = "python-language-server";
14 version = "2022-02-18";
15
16 src = fetchFromGitHub {
17 owner = "microsoft";
18 repo = "python-language-server";
19 rev = "52c1afd34b5acb0b44597bb8681232876fe94084";
20 sha256 = "05s8mwi3dqzjghgpr1mfs1b7cgrq818bbj1v7aly6axc8c2n4gny";
21 };
22
23 projectFile = "src/LanguageServer/Impl/Microsoft.Python.LanguageServer.csproj";
24 nugetDeps = ./deps.nix;
25
26 dotnet-sdk = dotnetCorePackages.sdk_3_1;
27 dotnet-runtime = dotnetCorePackages.runtime_3_1;
28
29 nativeBuildInputs = [ autoPatchelfHook ];
30 buildInputs = [ stdenv.cc.cc.lib ];
31 runtimeDeps = [ openssl icu ];
32
33 postFixup = ''
34 mv $out/bin/Microsoft.Python.LanguageServer $out/bin/python-language-server
35 '';
36
37 passthru.updateScript = ./updater.sh;
38
39 meta = with lib; {
40 description = "Microsoft Language Server for Python";
41 homepage = "https://github.com/microsoft/python-language-server";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ thomasjm ];
44 platforms = [ "x86_64-linux" ];
45 };
46}