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

24 lines
599 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2017-06-01 22:57:39 +02:00
buildGoPackage rec {
pname = "gh-ost";
2021-06-18 07:29:16 +02:00
version = "1.1.2";
2017-06-01 22:57:39 +02:00
src = fetchFromGitHub {
owner = "github";
repo = "gh-ost";
rev = "v${version}";
2021-06-18 07:29:16 +02:00
sha256 = "sha256-q1wtATFm65c2esQ+TPR2f+YafYeOmC79EumHyGxXrnE=";
};
2017-06-01 22:57:39 +02:00
goPackagePath = "github.com/github/gh-ost";
2017-06-01 22:57:39 +02:00
2021-08-26 05:31:57 +02: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;
};
}