nixpkgs/pkgs/tools/misc/gh-ost/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
599 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2017-06-01 23:57:39 +03:00
buildGoPackage rec {
pname = "gh-ost";
2022-07-28 15:39:08 +03:00
version = "1.1.5";
2017-06-01 23:57:39 +03:00
src = fetchFromGitHub {
owner = "github";
repo = "gh-ost";
rev = "v${version}";
2022-07-28 15:39:08 +03:00
sha256 = "sha256-FTWKbZ/32cr/BUI+jtV0HYlWDFz+R2YQd6ZSzilDj64=";
};
2017-06-01 23:57:39 +03:00
goPackagePath = "github.com/github/gh-ost";
2017-06-01 23:57:39 +03:00
2021-08-26 06:31:57 +03:00
ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" "-X main.BuildDescribe=${src.rev}" ];
meta = with lib; {
description = "Triggerless online schema migration solution for MySQL";
homepage = "https://github.com/github/gh-ost";
license = licenses.mit;
};
}