nixpkgs/pkgs/by-name/jq/jq-lsp/package.nix

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

38 lines
806 B
Nix
Raw Normal View History

2023-10-27 16:37:00 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2024-01-14 16:19:50 +00:00
buildGoModule rec {
2023-10-27 16:37:00 +00:00
pname = "jq-lsp";
2024-10-14 21:07:37 +00:00
version = "0.1.4";
2023-10-27 16:37:00 +00:00
src = fetchFromGitHub {
owner = "wader";
repo = "jq-lsp";
2024-01-14 16:19:50 +00:00
rev = "refs/tags/v${version}";
2024-10-14 21:07:37 +00:00
hash = "sha256-ueSf32C4BznDKBQD0OIJKZhrwLq1xpn6WWEnsqoWkl8=";
2023-10-27 16:37:00 +00:00
};
2024-05-31 11:37:16 +00:00
vendorHash = "sha256-8sZGnoP7l09ZzLJqq8TUCquTOPF0qiwZcFhojUnnEIY=";
2023-10-27 16:37:00 +00:00
2024-01-30 18:22:41 +00:00
# based on https://github.com/wader/jq-lsp/blob/master/.goreleaser.yml
CGO_ENABLED = 0;
2024-01-30 18:22:41 +00:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${src.rev}"
"-X main.builtBy=Nix"
];
2023-10-27 16:37:00 +00:00
meta = with lib; {
description = "jq language server";
homepage = "https://github.com/wader/jq-lsp";
license = licenses.mit;
maintainers = with maintainers; [ sysedwinistrator ];
mainProgram = "jq-lsp";
};
}