depot/third_party/nixpkgs/pkgs/applications/misc/sqls/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

27 lines
694 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "sqls";
version = "0.2.28";
src = fetchFromGitHub {
owner = "sqls-server";
repo = "sqls";
rev = "v${version}";
hash = "sha256-b3zLyj2n+eKOPBRooS68GfM0bsiTVXDblYKyBYKiYug=";
};
vendorHash = "sha256-6IFJvdT7YLnWsg7Icd3nKXXHM6TZKZ+IG9nEBosRCwA=";
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.revision=${src.rev}" ];
doCheck = false;
meta = with lib; {
homepage = "https://github.com/sqls-server/sqls";
description = "SQL language server written in Go";
mainProgram = "sqls";
license = licenses.mit;
maintainers = with maintainers; [ vinnymeller ];
};
}