2021-10-05 23:40:05 +01:00
|
|
|
{ lib, vscode-utils, terraform-ls }:
|
2021-02-17 15:52:42 +00:00
|
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
|
|
mktplcRef = {
|
|
|
|
name = "terraform";
|
|
|
|
publisher = "hashicorp";
|
2022-01-07 22:02:34 +00:00
|
|
|
version = "2.18.0";
|
|
|
|
sha256 = "sha256-jQ4fwsAwuGDbfSb/qCV58ETtH+2e7zD/jGISGNYPxZk=";
|
2021-02-17 15:52:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-terraform-ls.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-08-02 21:40:24 +01:00
|
|
|
substituteInPlace out/serverPath.js --replace TERRAFORM-LS-PATH ${terraform-ls}/bin/terraform-ls
|
2021-02-17 15:52:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rhoriguchi ];
|
|
|
|
};
|
|
|
|
}
|