8ec1fd4587
GitOrigin-RevId: 266dc8c3d052f549826ba246d06787a219533b8f
25 lines
760 B
Nix
25 lines
760 B
Nix
{ lib, fetchurl, vscode-utils, terraform-ls }:
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
mktplcRef = {
|
|
name = "terraform";
|
|
publisher = "hashicorp";
|
|
version = "2.8.2";
|
|
};
|
|
|
|
vsix = fetchurl {
|
|
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
|
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/terraform-${mktplcRef.version}.vsix";
|
|
sha256 = "0f1ck3h8ckvr75j27w2lxjbwnr24nc6fjki0gnn715ynkqg7w9bi";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|