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