percona-server_8_3: init at 8.3.0-1
This release belongs to the "innovation" release track of Percona, making it likely to diverge over time from the LTS release. Hence I just created a separate packaging expression for this.
This commit is contained in:
parent
b771106b51
commit
0999991e93
@ -4,7 +4,7 @@
|
||||
inherit (pkgs) mysql80;
|
||||
};
|
||||
perconaPackages = {
|
||||
inherit (pkgs) percona-server_8_0;
|
||||
inherit (pkgs) percona-server_8_0 percona-server_8_3;
|
||||
};
|
||||
mkTestName = pkg: "mariadb_${builtins.replaceStrings ["."] [""] (lib.versions.majorMinor pkg.version)}";
|
||||
}
|
||||
|
@ -146,6 +146,7 @@ in
|
||||
}) mariadbPackages)
|
||||
// (lib.mapAttrs (_: package: makeMySQLTest {
|
||||
inherit package;
|
||||
name = "percona_8_0";
|
||||
# FIXME: packages are renamed soon anyways
|
||||
#name = package.pname;
|
||||
hasMroonga = false; useSocketAuth = false;
|
||||
}) perconaPackages)
|
||||
|
112
pkgs/servers/sql/percona-server/8.3.nix
Normal file
112
pkgs/servers/sql/percona-server/8.3.nix
Normal file
@ -0,0 +1,112 @@
|
||||
{ lib, stdenv, fetchurl, bison, cmake, pkg-config
|
||||
, boost, icu, libedit, libevent, lz4, ncurses, openssl, perl, protobuf, re2, readline, zlib, zstd, libfido2
|
||||
, numactl, cctools, CoreServices, developer_cmds, libtirpc, rpcsvc-proto, curl, DarwinTools, nixosTests
|
||||
, systemd
|
||||
# Percona-specific deps
|
||||
, coreutils, cyrus_sasl, gnumake, openldap
|
||||
# optional: different malloc implementations
|
||||
, withJemalloc ? false, withTcmalloc ? false, jemalloc, gperftools
|
||||
}:
|
||||
|
||||
assert !(withJemalloc && withTcmalloc);
|
||||
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "percona-server";
|
||||
version = "8.3.0-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.percona.com/downloads/percona-distribution-mysql-ps/percona-distribution-mysql-ps-${builtins.head (lib.strings.split "-" finalAttrs.version)}/source/tarball/percona-server-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-GeuifzqCkStmb4qYa8147XBHvMogYwfsn0FyHdO4WEg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison cmake pkg-config ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
||||
|
||||
patches = [
|
||||
./no-force-outline-atomics.patch # Do not force compilers to turn on -moutline-atomics switch
|
||||
];
|
||||
|
||||
## NOTE: MySQL upstream frequently twiddles the invocations of libtool. When updating, you might proactively grep for libtool references.
|
||||
postPatch = ''
|
||||
substituteInPlace cmake/libutils.cmake --replace /usr/bin/libtool libtool
|
||||
substituteInPlace cmake/os/Darwin.cmake --replace /usr/bin/libtool libtool
|
||||
# The rocksdb setup script is called with `env -i` and cannot find anything in PATH.
|
||||
patchShebangs storage/rocksdb/get_rocksdb_files.sh
|
||||
substituteInPlace storage/rocksdb/get_rocksdb_files.sh --replace mktemp ${coreutils}/bin/mktemp
|
||||
substituteInPlace storage/rocksdb/get_rocksdb_files.sh --replace "rm $MKFILE" "${coreutils}/bin/rm $MKFILE"
|
||||
substituteInPlace storage/rocksdb/get_rocksdb_files.sh --replace "make --" "${gnumake}/bin/make --"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
boost (curl.override { inherit openssl; }) icu libedit libevent lz4 ncurses openssl protobuf re2 readline zlib
|
||||
zstd libfido2 openldap perl cyrus_sasl
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
numactl libtirpc systemd
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
cctools CoreServices developer_cmds DarwinTools
|
||||
]
|
||||
++ lib.optional (stdenv.isLinux && withJemalloc) jemalloc
|
||||
++ lib.optional (stdenv.isLinux && withTcmalloc) gperftools;
|
||||
|
||||
outputs = [ "out" "static" ];
|
||||
|
||||
cmakeFlags = [
|
||||
# Percona-specific flags.
|
||||
"-DPORTABLE=1"
|
||||
"-DWITH_LDAP=system"
|
||||
"-DROCKSDB_DISABLE_AVX2=1"
|
||||
"-DROCKSDB_DISABLE_MARCH_NATIVE=1"
|
||||
|
||||
# Flags taken from mysql package.
|
||||
"-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
|
||||
"-DWITH_ROUTER=OFF" # It may be packaged separately.
|
||||
"-DWITH_SYSTEM_LIBS=ON"
|
||||
"-DWITH_UNIT_TESTS=OFF"
|
||||
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
|
||||
"-DMYSQL_DATADIR=/var/lib/mysql"
|
||||
"-DINSTALL_INFODIR=share/mysql/docs"
|
||||
"-DINSTALL_MANDIR=share/man"
|
||||
"-DINSTALL_PLUGINDIR=lib/mysql/plugin"
|
||||
"-DINSTALL_INCLUDEDIR=include/mysql"
|
||||
"-DINSTALL_DOCREADMEDIR=share/mysql"
|
||||
"-DINSTALL_SUPPORTFILESDIR=share/mysql"
|
||||
"-DINSTALL_MYSQLSHAREDIR=share/mysql"
|
||||
"-DINSTALL_MYSQLTESTDIR="
|
||||
"-DINSTALL_DOCDIR=share/mysql/docs"
|
||||
"-DINSTALL_SHAREDIR=share/mysql"
|
||||
|
||||
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
"-DWITH_SYSTEMD=1"
|
||||
"-DWITH_SYSTEMD_DEBUG=1"
|
||||
]
|
||||
++ lib.optional (stdenv.isLinux && withJemalloc) "-DWITH_JEMALLOC=1"
|
||||
++ lib.optional (stdenv.isLinux && withTcmalloc) "-DWITH_TCMALLOC=1";
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "lib/*.a" $static
|
||||
so=${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
ln -s libmysqlclient$so $out/lib/libmysqlclient_r$so
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
client = finalAttrs.finalPackage;
|
||||
connector-c = finalAttrs.finalPackage;
|
||||
server = finalAttrs.finalPackage;
|
||||
mysqlVersion = lib.versions.majorMinor finalAttrs.version;
|
||||
tests = nixosTests.mysql.percona-server_8_3;
|
||||
};
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.percona.com/software/mysql-database/percona-server";
|
||||
description = ''
|
||||
A free, fully compatible, enhanced, open source drop-in replacement for
|
||||
MySQL® that provides superior performance, scalability and instrumentation.
|
||||
'';
|
||||
license = licenses.gpl2;
|
||||
maintainers = teams.flyingcircus.members;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
@ -11708,6 +11708,12 @@ with pkgs;
|
||||
icu = icu69;
|
||||
protobuf = protobuf_21;
|
||||
};
|
||||
percona-server_8_3 = callPackage ../servers/sql/percona-server/8.3.nix {
|
||||
inherit (darwin) cctools developer_cmds DarwinTools;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
# newer versions cause linking failures against `libabsl_spinlock_wait`
|
||||
protobuf = protobuf_21;
|
||||
};
|
||||
percona-xtrabackup = percona-xtrabackup_8_0;
|
||||
percona-xtrabackup_8_0 = callPackage ../tools/backup/percona-xtrabackup/8_0.nix {
|
||||
boost = boost177;
|
||||
|
Loading…
Reference in New Issue
Block a user