nixpkgs/pkgs/development/tools/misc/terraform-ls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1003 B
Nix
Raw Normal View History

2023-07-08 02:14:59 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "terraform-ls";
version = "0.32.3";
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
hash = "sha256-uvSAqk9LE0NbOWn2rcygDu7Hl28Wu3KkM5UhI4aocGo=";
};
vendorHash = "sha256-xoyassGp//8YXG/B1e3kW96UvltQLa662ZlH9/CMzm0=";
2023-07-08 02:14:59 +00:00
ldflags = [ "-s" "-w" ];
2021-08-02 13:13:42 +00:00
# There's a mixture of tests that use networking and several that fail on aarch64
doCheck = false;
2021-08-02 13:13:42 +00:00
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/terraform-ls --help
2023-07-08 02:14:59 +00:00
$out/bin/terraform-ls --version | grep "${version}"
2021-08-02 13:13:42 +00:00
runHook postInstallCheck
'';
meta = with lib; {
description = "Terraform Language Server (official)";
homepage = "https://github.com/hashicorp/terraform-ls";
changelog = "https://github.com/hashicorp/terraform-ls/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ mbaillie jk ];
};
}