2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, zlib
|
|
|
|
, pcre
|
|
|
|
, libmysqlclient
|
|
|
|
, libressl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
let inherit (lib) getDev; in
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mydumper";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.13.1-1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maxbube";
|
2022-12-17 10:02:37 +00:00
|
|
|
repo = "mydumper";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Oknivkyr3wOfjnDccEeFVt7D2l1CkeWgXahsQCtAc0I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
zlib
|
|
|
|
pcre
|
|
|
|
libmysqlclient
|
|
|
|
libressl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DMYSQL_INCLUDE_DIR=${getDev libmysqlclient}/include/mysql"
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "High-perfomance 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 ];
|
|
|
|
};
|
|
|
|
}
|