about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-06-12 08:18:35 -0500
committerGitHub <noreply@github.com>2020-06-12 08:18:35 -0500
commit80643891c0ddf7fe9bb8f2fe345324d5539b2dd9 (patch)
treedb7c533961c4041e5e4aa39cb5118a79d8f7a0b2 /pkgs/development/tools
parent6e5952e5177ad98aa95a6675e3ee92edc713be8f (diff)
parent66dcfc613ea7746102cc28f4d4739d5b4bca6ae4 (diff)
downloadnixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar.gz
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar.bz2
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar.lz
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar.xz
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.tar.zst
nixlib-80643891c0ddf7fe9bb8f2fe345324d5539b2dd9.zip
Merge pull request #90181 from martinbaillie/terraform-language-server
terraform-ls: init at 0.3.2
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/terraform-ls/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/terraform-ls/default.nix b/pkgs/development/tools/misc/terraform-ls/default.nix
new file mode 100644
index 000000000000..cbbdd416ff8b
--- /dev/null
+++ b/pkgs/development/tools/misc/terraform-ls/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  pname = "terraform-ls";
+  version = "0.3.2";
+
+  src = fetchFromGitHub {
+    owner = "hashicorp";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "11776nq1ixrg791xlmryjxldsc8gn69j1fc0wd6cdywy8yp2lh4w";
+  };
+
+  goPackagePath = "github.com/hashicorp/terraform-ls";
+
+  buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
+
+  meta = with lib; {
+    description = "Terraform Language Server (official)";
+    homepage = "https://github.com/hashicorp/terraform-ls";
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ mbaillie ];
+  };
+}