2021-02-17 15:52:42 +00:00
|
|
|
{ lib, fetchurl, vscode-utils, terraform-ls }:
|
|
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
|
|
mktplcRef = {
|
|
|
|
name = "terraform";
|
|
|
|
publisher = "hashicorp";
|
2021-02-23 14:29:49 +00:00
|
|
|
version = "2.7.0";
|
2021-02-17 15:52:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vsix = fetchurl {
|
|
|
|
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
|
|
|
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/terraform-${mktplcRef.version}.vsix";
|
2021-02-23 14:29:49 +00:00
|
|
|
sha256 = "0lpsng7rd88ppjybmypzw42czr6swwin5cyl78v36z3wjwqx26xp";
|
2021-02-17 15:52:42 +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 ];
|
|
|
|
};
|
|
|
|
}
|