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