2017-12-30 17:04:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
2018-07-12 14:08:13 +01:00
|
|
|
, boost, bison, curl, ncurses, openssl, xxd
|
2017-12-30 17:04:44 +00:00
|
|
|
, libaio, libev, libgcrypt, libgpgerror, libtool, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "percona-xtrabackup";
|
2018-07-12 14:08:13 +01:00
|
|
|
version = "2.4.12";
|
2017-12-30 17:04:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "percona";
|
|
|
|
repo = "percona-xtrabackup";
|
2019-08-15 13:41:18 +01:00
|
|
|
rev = "${pname}-${version}";
|
2018-07-12 14:08:13 +01:00
|
|
|
sha256 = "1w17v2c677b3vfnm81bs63kjbfiin7f12wl9fbgp83hfpyx5msan";
|
2017-12-30 17:04:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-12 14:08:13 +01:00
|
|
|
boost bison curl ncurses openssl xxd
|
2017-12-30 17:04:44 +00:00
|
|
|
libaio libev libgcrypt libgpgerror libtool zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_CONFIG=xtrabackup_release"
|
|
|
|
"-DINSTALL_MYSQLTESTDIR=OFF"
|
2018-07-12 14:08:13 +01:00
|
|
|
"-DWITH_BOOST=system"
|
2017-12-30 17:04:44 +00:00
|
|
|
"-DWITH_SSL=system"
|
|
|
|
"-DWITH_ZLIB=system"
|
|
|
|
"-DWITH_MAN_PAGES=OFF"
|
2018-07-15 12:48:43 +01:00
|
|
|
"-DCMAKE_CXX_FLAGS=-std=gnu++03"
|
2017-12-30 17:04:44 +00:00
|
|
|
];
|
|
|
|
|
2018-07-12 14:08:13 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm -r "$out"/lib/plugin/debug
|
|
|
|
'';
|
|
|
|
|
2017-12-30 17:04:44 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Non-blocking backup tool for MySQL";
|
|
|
|
homepage = http://www.percona.com/software/percona-xtrabackup;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|