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

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

27 lines
657 B
Nix
Raw Normal View History

2021-09-01 00:04:20 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "sqls";
version = "0.2.28";
2021-09-01 00:04:20 +00:00
src = fetchFromGitHub {
owner = "sqls-server";
repo = "sqls";
2021-09-01 00:04:20 +00:00
rev = "v${version}";
hash = "sha256-b3zLyj2n+eKOPBRooS68GfM0bsiTVXDblYKyBYKiYug=";
2021-09-01 00:04:20 +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; {
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 ];
};
}