2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-06-01 20:57:39 +00:00
|
|
|
|
2020-10-04 13:49:00 +00:00
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "gh-ost";
|
2022-07-28 12:39:08 +00:00
|
|
|
version = "1.1.5";
|
2017-06-01 20:57:39 +00:00
|
|
|
|
2020-10-04 13:49:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "github";
|
|
|
|
repo = "gh-ost";
|
|
|
|
rev = "v${version}";
|
2022-07-28 12:39:08 +00:00
|
|
|
sha256 = "sha256-FTWKbZ/32cr/BUI+jtV0HYlWDFz+R2YQd6ZSzilDj64=";
|
2020-10-04 13:49:00 +00:00
|
|
|
};
|
2017-06-01 20:57:39 +00:00
|
|
|
|
2020-10-04 13:49:00 +00:00
|
|
|
goPackagePath = "github.com/github/gh-ost";
|
2017-06-01 20:57:39 +00:00
|
|
|
|
2021-08-26 03:31:57 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" "-X main.BuildDescribe=${src.rev}" ];
|
2019-02-13 19:23:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-04 13:49:00 +00:00
|
|
|
description = "Triggerless online schema migration solution for MySQL";
|
|
|
|
homepage = "https://github.com/github/gh-ost";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|