2021-09-01 02:04:20 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sqls";
|
2022-04-30 06:20:00 +02:00
|
|
|
version = "0.2.22";
|
2021-09-01 02:04:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lighttiger2505";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-30 06:20:00 +02:00
|
|
|
sha256 = "sha256-xtvm/NVL98dRzQL1id/WwT/NdsnB7qTRVR7jfrRsabY=";
|
2021-09-01 02:04:20 +02:00
|
|
|
};
|
|
|
|
|
2022-04-30 06:20:00 +02:00
|
|
|
vendorSha256 = "sha256-sowzyhvNr7Ek3ex4BP415HhHSKnqPHy5EbnECDVZOGw=";
|
2021-09-01 02:04:20 +02:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.revision=${src.rev}" ];
|
|
|
|
|
2022-04-30 06:20:00 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-01 02:04:20 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/lighttiger2505/sqls";
|
|
|
|
description = "SQL language server written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|