30 fetchSubmodules ? false,
32 extraPostInstall ? "",
36 stdenv.mkDerivation (finalAttrs: {
37 pname = "percona-xtrabackup";
40 src = fetchFromGitHub {
42 repo = "percona-xtrabackup";
43 rev = "percona-xtrabackup-${finalAttrs.version}";
44 inherit hash fetchSubmodules;
57 (curl.override { inherit openssl; })
75 ++ (with perlPackages; [
81 patches = extraPatches;
84 "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
85 "-DBUILD_CONFIG=xtrabackup_release"
86 "-DINSTALL_MYSQLTESTDIR=OFF"
89 "-DWITH_EDITLINE=system"
90 "-DWITH_LIBEVENT=system"
92 "-DWITH_PROTOBUF=system"
97 "-DWITH_MAN_PAGES=OFF"
102 wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB
103 rm -r "$out"/lib/plugin/debug
107 passthru.mysqlVersion = lib.versions.majorMinor finalAttrs.version;
110 description = "Non-blocking backup tool for MySQL";
111 homepage = "http://www.percona.com/software/percona-xtrabackup";
112 license = licenses.gpl2Only;
113 platforms = platforms.linux;
114 maintainers = teams.flyingcircus.members ++ [ maintainers.izorkin ];