a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
51 lines
949 B
Nix
51 lines
949 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, glib
|
|
, zlib
|
|
, pcre
|
|
, libmysqlclient
|
|
, libressl
|
|
}:
|
|
|
|
let inherit (lib) getDev; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mydumper";
|
|
version = "0.13.1-1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxbube";
|
|
repo = "mydumper";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Oknivkyr3wOfjnDccEeFVt7D2l1CkeWgXahsQCtAc0I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
zlib
|
|
pcre
|
|
libmysqlclient
|
|
libressl
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DMYSQL_INCLUDE_DIR=${getDev libmysqlclient}/include/mysql"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "High-perfomance MySQL backup tool";
|
|
homepage = "https://github.com/maxbube/mydumper";
|
|
changelog = "https://github.com/mydumper/mydumper/releases/tag/v${version}";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ izorkin ];
|
|
};
|
|
}
|