depot/third_party/nixpkgs/pkgs/development/tools/language-servers/vhdl-ls/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
806 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "vhdl-ls";
version = "0.81.0";
src = fetchFromGitHub {
owner = "VHDL-LS";
repo = "rust_hdl";
rev = "v${version}";
hash = "sha256-iF8HIfxC7WM5YT85HfCTM5hu5yCFnHpDposGDAO3qJI=";
};
cargoHash = "sha256-hkmaMzeQLd3l6A3xyLAZk+MrEeUKPd7H2N4Nsz7nBmk=";
postPatch = ''
substituteInPlace vhdl_lang/src/config.rs \
--replace /usr/lib $out/lib
'';
postInstall = ''
mkdir -p $out/lib/rust_hdl
cp -r vhdl_libraries $out/lib/rust_hdl
'';
meta = {
description = "Fast VHDL language server";
homepage = "https://github.com/VHDL-LS/rust_hdl";
license = lib.licenses.mpl20;
mainProgram = "vhdl_ls";
maintainers = with lib.maintainers; [ doronbehar ];
};
}