librewolf: 132.0.1 -> 132.0.1-1 (#355483)
[NixPkgs.git] / pkgs / by-name / jq / jq-lsp / package.nix
blobe33133c426343b343c9c3d532c88001e09b1f073
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "jq-lsp";
8   version = "0.1.4";
10   src = fetchFromGitHub {
11     owner = "wader";
12     repo = "jq-lsp";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-ueSf32C4BznDKBQD0OIJKZhrwLq1xpn6WWEnsqoWkl8=";
15   };
17   vendorHash = "sha256-8sZGnoP7l09ZzLJqq8TUCquTOPF0qiwZcFhojUnnEIY=";
19   # based on https://github.com/wader/jq-lsp/blob/master/.goreleaser.yml
20   CGO_ENABLED = 0;
22   ldflags = [
23     "-s"
24     "-w"
25     "-X main.version=${version}"
26     "-X main.commit=${src.rev}"
27     "-X main.builtBy=Nix"
28   ];
30   meta = with lib; {
31     description = "jq language server";
32     homepage = "https://github.com/wader/jq-lsp";
33     license = licenses.mit;
34     maintainers = with maintainers; [ sysedwinistrator ];
35     mainProgram = "jq-lsp";
36   };