2021-09-18 10:52:07 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sqls";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.2.28";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "sqls-server";
|
|
|
|
repo = "sqls";
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-b3zLyj2n+eKOPBRooS68GfM0bsiTVXDblYKyBYKiYug=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-6IFJvdT7YLnWsg7Icd3nKXXHM6TZKZ+IG9nEBosRCwA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.revision=${src.rev}" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/sqls-server/sqls";
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "SQL language server written in Go";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sqls";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ vinnymeller ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|