Files
nixpkgs/pkgs/by-name/vh/vhdl-ls/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
811 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "vhdl-ls";
version = "0.85.0";
src = fetchFromGitHub {
owner = "VHDL-LS";
repo = "rust_hdl";
rev = "v${version}";
hash = "sha256-uqJiPJ86zX9r44F8D6tabw7Cp24WQoQTen3VqnjlYu0=";
};
cargoHash = "sha256-ZC9HwMwrK3xWKr+gnf3SGMUcSRkvV3HL5h9R2lmfW9Q=";
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 ];
};
}