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