Unverified Commit f3bbbcd4 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

Merge pull request #254347 from doronbehar/pkg/vhdl-ls

vhdl-ls: 0.65.0 -> 0.66.0
parents 2fa96bfc 78ec172f
Loading
Loading
Loading
Loading
+0 −1063

File deleted.

Preview size limit exceeded, changes collapsed.

+4 −11
Original line number Diff line number Diff line
@@ -5,25 +5,18 @@

rustPlatform.buildRustPackage rec {
  pname = "vhdl-ls";
  version = "0.65.0";
  version = "0.66.0";

  src = fetchFromGitHub {
    owner = "VHDL-LS";
    repo = "rust_hdl";
    rev = "v${version}";
    hash = "sha256-B+jzTrV5Kk4VOgr+5l0F5+cXzfb0aErKaiH50vIdLq4=";
    hash = "sha256-tVeGfPm5WdZjARp7n4WD3YQzMUWA3M3TJo2oVivtkiA=";
  };

  # No Cargo.lock upstream, see:
  # https://github.com/VHDL-LS/rust_hdl/issues/166
  cargoLock = {
    lockFile = ./Cargo.lock;
  };
  cargoHash = "sha256-bXz216QvTpBuUNAi5sF0Lga+1ubjlokqPglUyAVXThg=";

  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
  '';