mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
bc0d605cf1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
31 lines
813 B
Nix
31 lines
813 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
, glib, zlib, pcre, libmysqlclient, libressl }:
|
|
|
|
let inherit (lib) getDev; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.5";
|
|
pname = "mydumper";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxbube";
|
|
repo = "mydumper";
|
|
rev = "v${version}";
|
|
sha256 = "0vbz0ri5hm6yzkrcgnaj8px6bf59myr5dbhyy7fd4cv44hr685k6";
|
|
};
|
|
|
|
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";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ izorkin ];
|
|
};
|
|
}
|