2023-03-25 19:32:36 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, cmake, pkg-config, sphinx
|
|
|
|
, glib , pcre
|
|
|
|
, libmysqlclient, libressl
|
|
|
|
, zlib, zstd
|
2022-12-04 12:31:02 +00:00
|
|
|
}:
|
2017-12-06 13:00:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mydumper";
|
2023-04-06 20:08:06 +00:00
|
|
|
version = "0.14.3-1";
|
2017-12-06 13:00:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-25 19:32:36 +00:00
|
|
|
owner = "mydumper";
|
2022-12-04 12:33:04 +00:00
|
|
|
repo = "mydumper";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-06 20:08:06 +00:00
|
|
|
hash = "sha256-qyJGnrBOElQ3s2VoOWfW1luacd33haanmzKidMBgCpc=";
|
2017-12-06 13:00:49 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 19:32:36 +00:00
|
|
|
outputs = [ "out" "doc" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config sphinx ];
|
2017-12-06 13:00:49 +00:00
|
|
|
|
2022-12-04 12:33:04 +00:00
|
|
|
buildInputs = [
|
2023-03-25 19:32:36 +00:00
|
|
|
glib pcre
|
|
|
|
libmysqlclient libressl
|
|
|
|
zlib zstd
|
2022-12-04 12:33:04 +00:00
|
|
|
];
|
2017-12-06 13:00:49 +00:00
|
|
|
|
2022-12-04 12:33:04 +00:00
|
|
|
cmakeFlags = [
|
2023-03-25 19:32:36 +00:00
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
|
|
|
"-DMYSQL_INCLUDE_DIR=${lib.getDev libmysqlclient}/include/mysql"
|
|
|
|
"-DWITH_ZSTD=ON"
|
2022-12-04 12:33:04 +00:00
|
|
|
];
|
2020-09-12 10:59:38 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-05-08 17:23:34 +00:00
|
|
|
description = "High-performance MySQL backup tool";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/maxbube/mydumper";
|
2022-12-04 12:33:04 +00:00
|
|
|
changelog = "https://github.com/mydumper/mydumper/releases/tag/v${version}";
|
2022-12-04 12:31:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2018-05-07 13:44:30 +00:00
|
|
|
platforms = platforms.linux;
|
2017-12-06 13:00:49 +00:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|