48af15f7a5
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
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.9.1";
|
|
};
|
|
|
|
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 = "1i4pzxw57hf2g7x62hfsb588b1lz3zjjh8ny96qqrif2bj2h887z";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|