1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/tools/misc/gh-ost/default.nix
R. RyanTM 63f079908a
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>
2020-10-04 08:49:00 -05:00

24 lines
621 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
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";
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;
};
}