2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
31 lines
643 B
Nix
31 lines
643 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, gh-ost }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gh-ost";
|
|
version = "1.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "github";
|
|
repo = "gh-ost";
|
|
rev = "v${version}";
|
|
hash = "sha256-dTz4w+OJXe2+ygsYsQ9tanDyaMXvdh8W3d8xpjQMapI=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.AppVersion=${version}"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = gh-ost;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Triggerless online schema migration solution for MySQL";
|
|
homepage = "https://github.com/github/gh-ost";
|
|
license = licenses.mit;
|
|
};
|
|
}
|