3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/terraform-lsp/default.nix

25 lines
667 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2019-07-22 10:20:00 +01:00
buildGoPackage rec {
2019-07-22 10:20:00 +01:00
pname = "terraform-lsp";
2021-05-20 05:20:00 +01:00
version = "0.0.12";
2019-07-22 10:20:00 +01:00
src = fetchFromGitHub {
owner = "juliosueiras";
repo = pname;
rev = "v${version}";
2021-05-20 05:20:00 +01:00
sha256 = "111350jbq0dp0qhk48j12hrlisd1fwzqpcv357igrbqf6ki7r78q";
2019-07-22 10:20:00 +01:00
};
goPackagePath = "github.com/juliosueiras/terraform-lsp";
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitCommit=${src.rev}" ];
2019-07-22 10:20:00 +01:00
meta = with lib; {
description = "Language Server Protocol for Terraform";
homepage = "https://github.com/juliosueiras/terraform-lsp";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}