2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2019-09-22 08:38:09 +01:00
|
|
|
, glib, zlib, pcre, libmysqlclient, libressl }:
|
2017-12-06 13:00:49 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
let inherit (lib) getDev; in
|
2020-09-12 11:59:38 +01:00
|
|
|
|
2017-12-06 13:00:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-05-07 09:37:54 +01:00
|
|
|
version = "0.9.5";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mydumper";
|
2017-12-06 13:00:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maxbube";
|
|
|
|
repo = "mydumper";
|
|
|
|
rev = "v${version}";
|
2018-05-07 09:37:54 +01:00
|
|
|
sha256 = "0vbz0ri5hm6yzkrcgnaj8px6bf59myr5dbhyy7fd4cv44hr685k6";
|
2017-12-06 13:00:49 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-12-06 13:00:49 +00:00
|
|
|
|
2019-09-22 08:38:09 +01:00
|
|
|
buildInputs = [ glib zlib pcre libmysqlclient libressl ];
|
2017-12-06 13:00:49 +00:00
|
|
|
|
2020-09-12 11:59:38 +01:00
|
|
|
cmakeFlags = [ "-DMYSQL_INCLUDE_DIR=${getDev libmysqlclient}/include/mysql" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "High-perfomance MySQL backup tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/maxbube/mydumper";
|
2017-12-06 13:00:49 +00:00
|
|
|
license = licenses.gpl3;
|
2018-05-07 14:44:30 +01:00
|
|
|
platforms = platforms.linux;
|
2017-12-06 13:00:49 +00:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|