2021-02-17 15:52:42 +00:00
|
|
|
{ lib, fetchurl, vscode-utils, terraform-ls }:
|
|
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
|
|
mktplcRef = {
|
|
|
|
name = "terraform";
|
|
|
|
publisher = "hashicorp";
|
2021-07-20 07:56:18 +01:00
|
|
|
version = "2.13.2";
|
2021-02-17 15:52:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vsix = fetchurl {
|
|
|
|
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
2021-04-13 23:38:46 +01:00
|
|
|
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/${mktplcRef.name}-${mktplcRef.version}.vsix";
|
2021-07-20 07:56:18 +01:00
|
|
|
sha256 = "0h7c6p2dcwsg7wlp49p2fsq0f164pzkx65929imd1m2df77aykqa";
|
2021-02-17 15:52:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-terraform-ls.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-07-16 10:12:08 +01:00
|
|
|
substituteInPlace out/clientHandler.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 ];
|
|
|
|
};
|
|
|
|
}
|