diff --git a/pkgs/tools/misc/gh-ost/default.nix b/pkgs/tools/misc/gh-ost/default.nix new file mode 100644 index 000000000000..24841a2bac79 --- /dev/null +++ b/pkgs/tools/misc/gh-ost/default.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub }: + +let + goPackagePath = "github.com/github/gh-ost"; + version = "1.0.36"; + sha256 = "0qa7k50bf87bx7sr6iwqri8l49f811gs0bj3ivslxfibcs1z5d4h"; + +in { + gh-ost = 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; + }; + }); +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9fd79a041d6d..3b507cfe74d5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1049,6 +1049,8 @@ with pkgs; genromfs = callPackage ../tools/filesystems/genromfs { }; + gh-ost = callPackage ../tools/misc/gh-ost { }; + gist = callPackage ../tools/text/gist { }; glide = callPackage ../development/tools/glide { };