2021-09-01 00:04:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sqls";
|
2023-12-30 11:19:00 +00:00
|
|
|
version = "0.2.28";
|
2021-09-01 00:04:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-12-30 11:19:00 +00:00
|
|
|
owner = "sqls-server";
|
|
|
|
repo = "sqls";
|
2021-09-01 00:04:20 +00:00
|
|
|
rev = "v${version}";
|
2023-12-30 11:19:00 +00:00
|
|
|
hash = "sha256-b3zLyj2n+eKOPBRooS68GfM0bsiTVXDblYKyBYKiYug=";
|
2021-09-01 00:04:20 +00:00
|
|
|
};
|
|
|
|
|
2023-12-30 11:19:00 +00:00
|
|
|
vendorHash = "sha256-6IFJvdT7YLnWsg7Icd3nKXXHM6TZKZ+IG9nEBosRCwA=";
|
2021-09-01 00:04:20 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.revision=${src.rev}" ];
|
|
|
|
|
2022-04-30 04:20:00 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-01 00:04:20 +00:00
|
|
|
meta = with lib; {
|
2023-12-30 11:19:00 +00:00
|
|
|
homepage = "https://github.com/sqls-server/sqls";
|
2021-09-01 00:04:20 +00:00
|
|
|
description = "SQL language server written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|