2021-09-01 02:04:20 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sqls";
|
2021-11-15 05:20:00 +01:00
|
|
|
version = "0.2.20";
|
2021-09-01 02:04:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lighttiger2505";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-15 05:20:00 +01:00
|
|
|
sha256 = "sha256-QYxiWxgzuD+JymlXlVmzZOtex70JC93VmWljAFQJMPQ=";
|
2021-09-01 02:04:20 +02:00
|
|
|
};
|
|
|
|
|
2021-11-15 05:20:00 +01:00
|
|
|
vendorSha256 = "sha256-fo5g6anMcKqdzLG8KCJ/T4uTOp1Z5Du4EtCHYkLgUpo=";
|
2021-09-01 02:04:20 +02:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.revision=${src.rev}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/lighttiger2505/sqls";
|
|
|
|
description = "SQL language server written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|