3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
25 lines
769 B
Nix
25 lines
769 B
Nix
{ lib, fetchurl, vscode-utils, terraform-ls }:
|
|
vscode-utils.buildVscodeMarketplaceExtension rec {
|
|
mktplcRef = {
|
|
name = "terraform";
|
|
publisher = "hashicorp";
|
|
version = "2.11.0";
|
|
};
|
|
|
|
vsix = fetchurl {
|
|
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
|
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/${mktplcRef.name}-${mktplcRef.version}.vsix";
|
|
sha256 = "0wqdya353b415qxs8jczmis3q6d8fddv1pdd8jdd0w64s1ibv3sy";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|