2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-06-01 22:57:39 +02:00
|
|
|
|
2020-10-04 15:49:00 +02:00
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "gh-ost";
|
|
|
|
version = "1.1.0";
|
2017-06-01 22:57:39 +02:00
|
|
|
|
2020-10-04 15:49:00 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "github";
|
|
|
|
repo = "gh-ost";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0laj5nmf10qn01mqn0flipmhankgvrcfbdl3bc76wa14qkkg722m";
|
|
|
|
};
|
2017-06-01 22:57:39 +02:00
|
|
|
|
2020-10-04 15:49:00 +02:00
|
|
|
goPackagePath = "github.com/github/gh-ost";
|
2017-06-01 22:57:39 +02:00
|
|
|
|
2020-10-04 15:49:00 +02:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.AppVersion=${version} -X main.BuildDescribe=${src.rev}" ];
|
2019-02-13 20:23:51 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-04 15:49:00 +02:00
|
|
|
description = "Triggerless online schema migration solution for MySQL";
|
|
|
|
homepage = "https://github.com/github/gh-ost";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|