mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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:
parent
5f45e68c6b
commit
63f079908a
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user