Skip to content

Commit

Permalink
Merge pull request #9 from dao42/feat-lsp-rust
Browse files Browse the repository at this point in the history
lsp rust
  • Loading branch information
hongcha98 authored May 20, 2022
2 parents f121764 + 9039538 commit f2a8be2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ in

showmebugPackages = rec {
phpunit = self.callPackage ./pkgs/phpunit { };
rust-analyzer = self.callPackage ./pkgs/rust-analyzer { };

php74 = super.php74;
composer = super.php74Packages.composer;
Expand Down
19 changes: 19 additions & 0 deletions pkgs/rust-analyzer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "rust-analyzer";
version = "2022-05-17";

src = fetchurl {
url = "http://119.91.141.92:8080/language-source/rust/rust-analyzer";
sha256 = "sha256-W7zkpNT1ca0SqIrqnhW+wm1kroM3+sI/Sos93m+eDcA=";
};

phases = [ "installPhase" ];

installPhase = ''
mkdir -p $out/bin
cp ${src} $out/bin
mv $out/bin/*-rust-* $out/bin/rust-analyzer
cd $out/bin && chmod +x rust-analyzer
'';
}

0 comments on commit f2a8be2

Please sign in to comment.