Merge pull request #222395 from doronbehar/pkg/rust_hdl
vhdl-ls: init at 0.64.0
This commit is contained in:
commit
aa2efab614
1027
pkgs/development/tools/language-servers/vhdl-ls/Cargo.lock
generated
Normal file
1027
pkgs/development/tools/language-servers/vhdl-ls/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
43
pkgs/development/tools/language-servers/vhdl-ls/default.nix
Normal file
43
pkgs/development/tools/language-servers/vhdl-ls/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "vhdl-ls";
|
||||
version = "0.64.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VHDL-LS";
|
||||
repo = "rust_hdl";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-j5WRJJBUPKW3W+kY5hdqdZxxGkIAoEcW+A2pp23MX6Q=";
|
||||
};
|
||||
|
||||
# No Cargo.lock upstream, see:
|
||||
# https://github.com/VHDL-LS/rust_hdl/issues/166
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
''
|
||||
# Also make it look up vhdl_libraries in an expected location
|
||||
+ ''
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -13225,6 +13225,8 @@ with pkgs;
|
||||
|
||||
vhd2vl = callPackage ../applications/science/electronics/vhd2vl { };
|
||||
|
||||
vhdl-ls = callPackage ../development/tools/language-servers/vhdl-ls { };
|
||||
|
||||
video2midi = callPackage ../tools/audio/video2midi {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user