git.iko.soy/typeable/nixpkgs
on master help sign in
gh-ost: init at 1.0.36
commite57deab6d04dc351f413c42d87bf71a2efe7b967 authorBenjamin Smith <polynomial@gmail.com> dateThu 1 Jun 2017, 13:57 (10 years ago) parentad7bee4
2 files changed+29
pkgs/tools/misc/gh-ost/default.nix+27 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/gh-ost/default.nixnew file+27
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -999,6 +999,8 @@ with pkgs;
999999
10001000 genromfs = callPackage ../tools/filesystems/genromfs { };
10011001
1002+ gh-ost = callPackage ../tools/misc/gh-ost { };
1003+
10021004 gist = callPackage ../tools/text/gist { };
10031005
10041006 glide = callPackage ../development/tools/glide { };