blob: dabd9484499aaba14a70d4ca8e9944ded2c363b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ 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 ];
};
}
|