@@ -0,0 +1,27 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2+
3+let
4+ goPackagePath = "github.com/github/gh-ost";
5+ version = "1.0.36";
6+ sha256 = "0qa7k50bf87bx7sr6iwqri8l49f811gs0bj3ivslxfibcs1z5d4h";
7+
8+in {
9+ gh-ost = buildGoPackage ({
10+ name = "gh-ost-${version}";
11+ inherit goPackagePath;
12+
13+ src = fetchFromGitHub {
14+ owner = "github";
15+ repo = "gh-ost";
16+ rev = "v${version}";
17+ inherit sha256;
18+ };
19+
20+ meta = with stdenv.lib; {
21+ description = "Triggerless online schema migration solution for MySQL";
22+ homepage = https://github.com/github/gh-ost;
23+ license = licenses.mit;
24+ platforms = platforms.linux;
25+ };
26+ });
27+}