2021-02-19 19:06:45 +00:00
|
|
|
{ lib, fetchurl, vscode-utils, terraform-ls }:
|
|
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
|
|
mktplcRef = {
|
|
|
|
name = "terraform";
|
|
|
|
publisher = "hashicorp";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.13.0";
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vsix = fetchurl {
|
|
|
|
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
2021-04-15 00:37:46 +00:00
|
|
|
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/${mktplcRef.name}-${mktplcRef.version}.vsix";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "1wc4jl4h3ja4ivynf20yxzwqssi6yd7alvqvcjrkksic98480qcz";
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-terraform-ls.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace out/extension.js --replace TERRAFORM-LS-PATH ${terraform-ls}/bin/terraform-ls
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rhoriguchi ];
|
|
|
|
};
|
|
|
|
}
|