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

52 lines
949 B
Nix
Raw Normal View History

{ 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 ];
};
}