Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 115 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116{ lib, stdenv, fetchFromGitHub, bison, boost, cmake, makeWrapper, pkg-config, curl, cyrus_sasl, libaio, libedit, libev, libevent, libgcrypt, libgpg-error, lz4, ncurses, numactl, openssl, procps, protobuf, valgrind, xxd, zlib, perlPackages, version, hash, fetchSubmodules ? false, extraPatches ? [ ], extraPostInstall ? "", ...}:
stdenv.mkDerivation (finalAttrs: { pname = "percona-xtrabackup"; inherit version;
src = fetchFromGitHub { owner = "percona"; repo = "percona-xtrabackup"; rev = "percona-xtrabackup-${finalAttrs.version}"; inherit hash fetchSubmodules; };
nativeBuildInputs = [ bison boost cmake makeWrapper pkg-config ];
buildInputs = [ (curl.override { inherit openssl; }) cyrus_sasl libaio libedit libevent libev libgcrypt libgpg-error lz4 ncurses numactl openssl procps protobuf valgrind xxd zlib ] ++ (with perlPackages; [ perl DBI DBDmysql ]);
patches = extraPatches;
cmakeFlags = [ "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock" "-DBUILD_CONFIG=xtrabackup_release" "-DINSTALL_MYSQLTESTDIR=OFF" "-DWITH_BOOST=system" "-DWITH_CURL=system" "-DWITH_EDITLINE=system" "-DWITH_LIBEVENT=system" "-DWITH_LZ4=system" "-DWITH_PROTOBUF=system" "-DWITH_SASL=system" "-DWITH_SSL=system" "-DWITH_ZLIB=system" "-DWITH_VALGRIND=ON" "-DWITH_MAN_PAGES=OFF" ];
postInstall = '' wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB rm -r "$out"/lib/plugin/debug '' + extraPostInstall;
passthru.mysqlVersion = lib.versions.majorMinor finalAttrs.version;
meta = with lib; { description = "Non-blocking backup tool for MySQL"; homepage = "http://www.percona.com/software/percona-xtrabackup"; license = licenses.gpl2Only; platforms = platforms.linux; maintainers = [ maintainers.izorkin ]; teams = [ teams.flyingcircus ]; };})