gh-ost: 1.0.49 -> 1.1.0 (#97139)

* gh-ost: 1.0.49 -> 1.1.0

* gh-ost: add ldflags

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
This commit is contained in:
R. RyanTM 2020-10-04 06:49:00 -07:00 committed by GitHub
parent 5f45e68c6b
commit 63f079908a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,23 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
let
buildGoPackage rec {
pname = "gh-ost";
version = "1.1.0";
src = fetchFromGitHub {
owner = "github";
repo = "gh-ost";
rev = "v${version}";
sha256 = "0laj5nmf10qn01mqn0flipmhankgvrcfbdl3bc76wa14qkkg722m";
};
goPackagePath = "github.com/github/gh-ost";
version = "1.0.49";
sha256 = "0mncjhmv25wnhgjkn9gwkz2gzh0v6954w47ql7fs2iqr9al111dq";
in
buildGoPackage ({
pname = "gh-ost";
inherit version;
inherit goPackagePath;
src = fetchFromGitHub {
owner = "github";
repo = "gh-ost";
rev = "v${version}";
inherit sha256;
};
meta = with stdenv.lib; {
description = "Triggerless online schema migration solution for MySQL";
homepage = "https://github.com/github/gh-ost";
license = licenses.mit;
};
})
buildFlagsArray = [ "-ldflags=-s -w -X main.AppVersion=${version} -X main.BuildDescribe=${src.rev}" ];
meta = with stdenv.lib; {
description = "Triggerless online schema migration solution for MySQL";
homepage = "https://github.com/github/gh-ost";
license = licenses.mit;
};
}