summary refs log tree commit diff
path: root/pkgs/tools/backup/mydumper/default.nix
blob: da8805bc226e7d0dd973842ec2a5246af6f0786e (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
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, glib, zlib, pcre, mysql, libressl }:

stdenv.mkDerivation rec {
  version = "0.9.3";
  name = "mydumper-${version}";

  src = fetchFromGitHub {
    owner  = "maxbube";
    repo   = "mydumper";
    rev    = "v${version}";
    sha256 = "139v6707sxyslg7n1fii8b1ybdq50hbqhc8zf6p1cr3h2hhl6ns9";
  };

  nativeBuildInputs = [ cmake pkgconfig ];

  buildInputs = [ glib zlib pcre mysql.connector-c libressl ];

  meta = with stdenv.lib; {
    description = ''High-perfomance MySQL backup tool'';
    homepage = https://github.com/maxbube/mydumper;
    license = licenses.gpl3;
    platforms = platforms.all;
    maintainers = with maintainers; [ izorkin ];
  };
}