2017-12-30 18:04:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
2018-07-12 15:08:13 +02:00
|
|
|
, boost, bison, curl, ncurses, openssl, xxd
|
2017-12-30 18:04:44 +01:00
|
|
|
, libaio, libev, libgcrypt, libgpgerror, libtool, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "percona-xtrabackup-${version}";
|
2018-07-12 15:08:13 +02:00
|
|
|
version = "2.4.12";
|
2017-12-30 18:04:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "percona";
|
|
|
|
repo = "percona-xtrabackup";
|
|
|
|
rev = name;
|
2018-07-12 15:08:13 +02:00
|
|
|
sha256 = "1w17v2c677b3vfnm81bs63kjbfiin7f12wl9fbgp83hfpyx5msan";
|
2017-12-30 18:04:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-12 15:08:13 +02:00
|
|
|
boost bison curl ncurses openssl xxd
|
2017-12-30 18:04:44 +01:00
|
|
|
libaio libev libgcrypt libgpgerror libtool zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_CONFIG=xtrabackup_release"
|
|
|
|
"-DINSTALL_MYSQLTESTDIR=OFF"
|
2018-07-12 15:08:13 +02:00
|
|
|
"-DWITH_BOOST=system"
|
2017-12-30 18:04:44 +01:00
|
|
|
"-DWITH_SSL=system"
|
|
|
|
"-DWITH_ZLIB=system"
|
|
|
|
"-DWITH_MAN_PAGES=OFF"
|
2018-07-15 13:48:43 +02:00
|
|
|
"-DCMAKE_CXX_FLAGS=-std=gnu++03"
|
2017-12-30 18:04:44 +01:00
|
|
|
];
|
|
|
|
|
2018-07-12 15:08:13 +02:00
|
|
|
postInstall = ''
|
|
|
|
rm -r "$out"/lib/plugin/debug
|
|
|
|
'';
|
|
|
|
|
2017-12-30 18:04:44 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|