nixpkgs-suyu/pkgs/applications/misc/sqls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
683 B
Nix
Raw Normal View History

2021-09-01 02:04:20 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "sqls";
version = "0.2.28";
2021-09-01 02:04:20 +02:00
src = fetchFromGitHub {
owner = "sqls-server";
repo = "sqls";
2021-09-01 02:04:20 +02:00
rev = "v${version}";
hash = "sha256-b3zLyj2n+eKOPBRooS68GfM0bsiTVXDblYKyBYKiYug=";
2021-09-01 02:04:20 +02:00
};
vendorHash = "sha256-6IFJvdT7YLnWsg7Icd3nKXXHM6TZKZ+IG9nEBosRCwA=";
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/sqls-server/sqls";
2021-09-01 02:04:20 +02:00
description = "SQL language server written in Go";
mainProgram = "sqls";
2021-09-01 02:04:20 +02:00
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}