1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/tools/backup/percona-xtrabackup/default.nix
2018-07-15 13:48:43 +02:00

46 lines
1.1 KiB
Nix

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