forked from juliosueiras/terraform-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
30 lines (24 loc) · 731 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
buildGoModule rec {
name = "terraform-lsp";
version = "0.0.9";
src = ./.;
modSha256 = null;
vendorSha256 = null;
buildPhase = ''
runHook preBuild
runHook renameImports
go install -ldflags="-s -w -X main.Version=${version} -X main.GitCommit='omitted' -X main.Date='omitted'"
runHook postBuild
'';
goPackagePath = "github.com/juliosueiras/terraform-lsp";
subPackages = [ "." ];
meta = with stdenv.lib; {
description = "Language Server Protocol for Terraform";
homepage = https://github.com/juliosueiras/terraform-lsp;
license = licenses.mit;
maintainers = with maintainers; [ juliosueiras ];
platforms = platforms.all;
};
}