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

31 lines
813 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, glib, zlib, pcre, libmysqlclient, libressl }:
2017-12-06 14:00:49 +01:00
2021-01-15 10:19:50 +01:00
let inherit (lib) getDev; in
2020-09-12 12:59:38 +02:00
2017-12-06 14:00:49 +01:00
stdenv.mkDerivation rec {
version = "0.9.5";
pname = "mydumper";
2017-12-06 14:00:49 +01:00
src = fetchFromGitHub {
owner = "maxbube";
repo = "mydumper";
rev = "v${version}";
sha256 = "0vbz0ri5hm6yzkrcgnaj8px6bf59myr5dbhyy7fd4cv44hr685k6";
2017-12-06 14:00:49 +01:00
};
nativeBuildInputs = [ cmake pkg-config ];
2017-12-06 14:00:49 +01:00
buildInputs = [ glib zlib pcre libmysqlclient libressl ];
2017-12-06 14:00:49 +01:00
2020-09-12 12:59:38 +02:00
cmakeFlags = [ "-DMYSQL_INCLUDE_DIR=${getDev libmysqlclient}/include/mysql" ];
meta = with lib; {
description = "High-perfomance MySQL backup tool";
homepage = "https://github.com/maxbube/mydumper";
2017-12-06 14:00:49 +01:00
license = licenses.gpl3;
2018-05-07 15:44:30 +02:00
platforms = platforms.linux;
2017-12-06 14:00:49 +01:00
maintainers = with maintainers; [ izorkin ];
};
}