mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
52 lines
949 B
Nix
52 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 ];
|
|
};
|
|
}
|