37 lines
806 B
Nix
37 lines
806 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "jq-lsp";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wader";
|
|
repo = "jq-lsp";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-BvnSX8pDdmj3t9/DHdV8zf0IZiu4sm97/KJdWOumNEI=";
|
|
};
|
|
|
|
vendorHash = "sha256-8sZGnoP7l09ZzLJqq8TUCquTOPF0qiwZcFhojUnnEIY=";
|
|
|
|
# based on https://github.com/wader/jq-lsp/blob/master/.goreleaser.yml
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
"-X main.commit=${src.rev}"
|
|
"-X main.builtBy=Nix"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "jq language server";
|
|
homepage = "https://github.com/wader/jq-lsp";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sysedwinistrator ];
|
|
mainProgram = "jq-lsp";
|
|
};
|
|
}
|