about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix b/nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix
new file mode 100644
index 000000000000..e6e094bb1cb6
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/vscode/extensions/terraform/default.nix
@@ -0,0 +1,20 @@
+{ lib, vscode-utils, terraform-ls }:
+vscode-utils.buildVscodeMarketplaceExtension rec {
+  mktplcRef = {
+    name = "terraform";
+    publisher = "hashicorp";
+    version = "2.19.0";
+    sha256 = "sha256-k/fcEJuELz0xkwivSrP6Nxtz861BLq1wR2ZDMXVrvkY=";
+  };
+
+  patches = [ ./fix-terraform-ls.patch ];
+
+  postPatch = ''
+    substituteInPlace out/serverPath.js --replace TERRAFORM-LS-PATH ${terraform-ls}/bin/terraform-ls
+  '';
+
+  meta = with lib; {
+    license = licenses.mit;
+    maintainers = with maintainers; [ rhoriguchi ];
+  };
+}