My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/gh-ost/default.nix

23 lines
599 B

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "gh-ost";
version = "1.1.4";
src = fetchFromGitHub {
owner = "github";
repo = "gh-ost";
rev = "v${version}";
sha256 = "sha256-HtLtwqPijOE19iJ2AUNAnyc2ujLPeH43HSg3QRBbKEg=";
};
goPackagePath = "github.com/github/gh-ost";
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;
};
}