mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
0f2fa7fbc3
Diff: https://github.com/hashicorp/terraform-ls/compare/v0.32.4...v0.32.5 Changelog: https://github.com/hashicorp/terraform-ls/blob/v0.32.5/CHANGELOG.md
37 lines
1003 B
Nix
37 lines
1003 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "terraform-ls";
|
|
version = "0.32.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-ywqxme/dsMwREvgLa2iLaibYzXHqgXR4OO8V8UiSSjw=";
|
|
};
|
|
|
|
vendorHash = "sha256-+6yO4gQmMNzl/rMWWQnyhepEI5miSCyolOQxQXWqGng=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
# There's a mixture of tests that use networking and several that fail on aarch64
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
$out/bin/terraform-ls --help
|
|
$out/bin/terraform-ls --version | grep "${version}"
|
|
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 ];
|
|
};
|
|
}
|