nixpkgs/pkgs/tools/backup/mydumper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1020 B
Nix
Raw Normal View History

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 {
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
meta = with lib; {
description = "High-performance MySQL backup tool";
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 ];
};
}