percona-xtrabackup 8.0: init at 8.0.13

This commit is contained in:
Izorkin 2020-07-05 15:43:08 +03:00
parent 36e166f4fe
commit 851467e0e1
4 changed files with 31 additions and 4 deletions

View File

@ -0,0 +1,6 @@
{ callPackage, ... } @ args:
callPackage ./generic.nix (args // {
version = "2.4.20";
sha256 = "0awdpkcgvx2aq7pwxy8jyzkin6cyrrh3d576x9ldm851kis9n5ii";
})

View File

@ -0,0 +1,14 @@
{ callPackage, ... } @ args:
callPackage ./generic.nix (args // {
version = "8.0.13";
sha256 = "0cj0fnjimv22ykfl0yk6w29wcjvqp8y8j2g1c6gcml65qazrswyr";
extraPatches = [
./../../../servers/sql/mysql/abi-check.patch
];
extraPostInstall = ''
rm -r "$out"/docs
'';
})

View File

@ -2,17 +2,18 @@
, curl, cyrus_sasl, libaio, libedit, libev, libevent, libgcrypt, libgpgerror, lz4
, ncurses, numactl, openssl, protobuf, valgrind, xxd, zlib
, perlPackages
, version, sha256, extraPatches ? [], extraPostInstall ? "", ...
}:
stdenv.mkDerivation rec {
pname = "percona-xtrabackup";
version = "2.4.20";
inherit version;
src = fetchFromGitHub {
owner = "percona";
repo = "percona-xtrabackup";
rev = "${pname}-${version}";
sha256 = "0awdpkcgvx2aq7pwxy8jyzkin6cyrrh3d576x9ldm851kis9n5ii";
inherit sha256;
};
nativeBuildInputs = [ bison boost cmake makeWrapper pkgconfig ];
@ -22,6 +23,8 @@ stdenv.mkDerivation rec {
ncurses numactl openssl protobuf valgrind xxd zlib
] ++ (with perlPackages; [ perl DBI DBDmysql ]);
patches = extraPatches;
cmakeFlags = [
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DBUILD_CONFIG=xtrabackup_release"
@ -43,7 +46,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB
rm -r "$out"/lib/plugin/debug
'';
'' + extraPostInstall;
meta = with stdenv.lib; {
description = "Non-blocking backup tool for MySQL";

View File

@ -5902,9 +5902,13 @@ in
perceptualdiff = callPackage ../tools/graphics/perceptualdiff { };
percona-xtrabackup = callPackage ../tools/backup/percona-xtrabackup {
percona-xtrabackup = percona-xtrabackup_8_0;
percona-xtrabackup_2_4 = callPackage ../tools/backup/percona-xtrabackup/2_4.nix {
boost = boost159;
};
percona-xtrabackup_8_0 = callPackage ../tools/backup/percona-xtrabackup/8_0.nix {
boost = boost170;
};
pick = callPackage ../tools/misc/pick { };