bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
36 lines
806 B
Nix
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 ];
|
|
};
|
|
}
|