07b8fe0546
GitOrigin-RevId: 916ee862e87ac5ee2439f2fb7856386b4dc906ae
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.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 = "1pdpl8diqybqf68jvfk4kq9wg4k6c38811mh8iq12j4ba31cig9s";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|