3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/percona-xtrabackup/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

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 {
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";
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"
"-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 ];
};
}