2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "vhdl-ls";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.77.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VHDL-LS";
|
|
|
|
repo = "rust_hdl";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-IAe4m/GC6ubCcZZESC6fToWVQT73XrhjJOiGCGzNxnQ=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-p7BL8WuQiB1KihwAl5aeO6Fa9INYRTQgoQPHcSMnaiQ=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
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 = "A fast VHDL language server";
|
|
|
|
homepage = "https://github.com/VHDL-LS/rust_hdl";
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "vhdl_ls";
|
|
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|