summary refs log tree commit diff
path: root/pkgs/tools/misc/gh-ost/default.nix
blob: 709d30050910fabc19421a2bf08217dfcfef68b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildGoPackage, fetchFromGitHub }:

let
  goPackagePath = "github.com/github/gh-ost";
  version = "1.0.47";
  sha256 = "0yyhkqis4j2cl6w2drrjxdy5j8x9zp4j89gsny6w4ql8gm5qgvvk";

in
buildGoPackage ({
    name = "gh-ost-${version}";
    inherit goPackagePath;

    src = fetchFromGitHub {
      owner = "github";
      repo  = "gh-ost";
      rev   = "v${version}";
      inherit sha256;
    };

    meta = with stdenv.lib; {
      description = "Triggerless online schema migration solution for MySQL";
      homepage = https://github.com/github/gh-ost;
      license = licenses.mit;
      platforms = platforms.linux;
    };
})