Loading pkgs/servers/sql/percona-server/8_0.nix +114 −22 Original line number Diff line number Diff line { 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 , coreutils, procps, gnused, gnugrep, hostname, makeWrapper { 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, coreutils, procps, gnused, gnugrep, hostname, makeWrapper, # Percona-specific deps , cyrus_sasl, gnumake, openldap cyrus_sasl, gnumake, openldap, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -16,9 +50,14 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ bison cmake pkg-config makeWrapper bison cmake pkg-config makeWrapper # required for scripts/CMakeLists.txt coreutils gnugrep procps coreutils gnugrep procps ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]; patches = [ Loading @@ -36,16 +75,41 @@ stdenv.mkDerivation (finalAttrs: { 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.hostPlatform.isLinux [ numactl libtirpc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools CoreServices developer_cmds DarwinTools 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.hostPlatform.isLinux [ numactl libtirpc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools CoreServices developer_cmds DarwinTools ]; outputs = [ "out" "static" ]; outputs = [ "out" "static" ]; cmakeFlags = [ # Percona-specific flags. Loading Loading @@ -78,11 +142,39 @@ stdenv.mkDerivation (finalAttrs: { so=${stdenv.hostPlatform.extensions.sharedLibrary} ln -s libmysqlclient$so $out/lib/libmysqlclient_r$so wrapProgram $out/bin/mysqld_safe --prefix PATH : ${lib.makeBinPath [ coreutils procps gnugrep gnused hostname ]} wrapProgram $out/bin/mysql_config --prefix PATH : ${lib.makeBinPath [ coreutils gnused ]} wrapProgram $out/bin/ps_mysqld_helper --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/ps-admin --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/mysqld_multi --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/mysqld_safe --prefix PATH : ${ lib.makeBinPath [ coreutils procps gnugrep gnused hostname ] } wrapProgram $out/bin/mysql_config --prefix PATH : ${ lib.makeBinPath [ coreutils gnused ] } wrapProgram $out/bin/ps_mysqld_helper --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } wrapProgram $out/bin/ps-admin --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } wrapProgram $out/bin/mysqld_multi --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } ''; passthru = { Loading pkgs/tools/backup/percona-xtrabackup/8_0.nix +16 −13 Original line number Diff line number Diff line { callPackage, ... }@args: callPackage ./generic.nix (args // { callPackage ./generic.nix ( args // { version = "8.0.35-31"; hash = "sha256-KHfgSi9bQlqsi5aDRBlSpdZgMfOrAwHK51k8KhQ9Udg="; Loading @@ -14,4 +16,5 @@ callPackage ./generic.nix (args // { extraPostInstall = '' rm -r "$out"/docs ''; }) } ) pkgs/tools/backup/percona-xtrabackup/generic.nix +71 −14 Original line number Diff line number Diff line { 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 ? "", ... { 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: { Loading @@ -16,12 +44,39 @@ stdenv.mkDerivation (finalAttrs: { inherit hash fetchSubmodules; }; nativeBuildInputs = [ bison boost cmake makeWrapper pkg-config ]; 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 ]); 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; Loading @@ -42,10 +97,12 @@ stdenv.mkDerivation (finalAttrs: { "-DWITH_MAN_PAGES=OFF" ]; postInstall = '' postInstall = '' wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB rm -r "$out"/lib/plugin/debug '' + extraPostInstall; '' + extraPostInstall; passthru.mysqlVersion = lib.versions.majorMinor finalAttrs.version; Loading Loading
pkgs/servers/sql/percona-server/8_0.nix +114 −22 Original line number Diff line number Diff line { 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 , coreutils, procps, gnused, gnugrep, hostname, makeWrapper { 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, coreutils, procps, gnused, gnugrep, hostname, makeWrapper, # Percona-specific deps , cyrus_sasl, gnumake, openldap cyrus_sasl, gnumake, openldap, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -16,9 +50,14 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ bison cmake pkg-config makeWrapper bison cmake pkg-config makeWrapper # required for scripts/CMakeLists.txt coreutils gnugrep procps coreutils gnugrep procps ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]; patches = [ Loading @@ -36,16 +75,41 @@ stdenv.mkDerivation (finalAttrs: { 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.hostPlatform.isLinux [ numactl libtirpc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools CoreServices developer_cmds DarwinTools 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.hostPlatform.isLinux [ numactl libtirpc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools CoreServices developer_cmds DarwinTools ]; outputs = [ "out" "static" ]; outputs = [ "out" "static" ]; cmakeFlags = [ # Percona-specific flags. Loading Loading @@ -78,11 +142,39 @@ stdenv.mkDerivation (finalAttrs: { so=${stdenv.hostPlatform.extensions.sharedLibrary} ln -s libmysqlclient$so $out/lib/libmysqlclient_r$so wrapProgram $out/bin/mysqld_safe --prefix PATH : ${lib.makeBinPath [ coreutils procps gnugrep gnused hostname ]} wrapProgram $out/bin/mysql_config --prefix PATH : ${lib.makeBinPath [ coreutils gnused ]} wrapProgram $out/bin/ps_mysqld_helper --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/ps-admin --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/mysqld_multi --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} wrapProgram $out/bin/mysqld_safe --prefix PATH : ${ lib.makeBinPath [ coreutils procps gnugrep gnused hostname ] } wrapProgram $out/bin/mysql_config --prefix PATH : ${ lib.makeBinPath [ coreutils gnused ] } wrapProgram $out/bin/ps_mysqld_helper --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } wrapProgram $out/bin/ps-admin --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } wrapProgram $out/bin/mysqld_multi --prefix PATH : ${ lib.makeBinPath [ coreutils gnugrep ] } ''; passthru = { Loading
pkgs/tools/backup/percona-xtrabackup/8_0.nix +16 −13 Original line number Diff line number Diff line { callPackage, ... }@args: callPackage ./generic.nix (args // { callPackage ./generic.nix ( args // { version = "8.0.35-31"; hash = "sha256-KHfgSi9bQlqsi5aDRBlSpdZgMfOrAwHK51k8KhQ9Udg="; Loading @@ -14,4 +16,5 @@ callPackage ./generic.nix (args // { extraPostInstall = '' rm -r "$out"/docs ''; }) } )
pkgs/tools/backup/percona-xtrabackup/generic.nix +71 −14 Original line number Diff line number Diff line { 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 ? "", ... { 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: { Loading @@ -16,12 +44,39 @@ stdenv.mkDerivation (finalAttrs: { inherit hash fetchSubmodules; }; nativeBuildInputs = [ bison boost cmake makeWrapper pkg-config ]; 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 ]); 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; Loading @@ -42,10 +97,12 @@ stdenv.mkDerivation (finalAttrs: { "-DWITH_MAN_PAGES=OFF" ]; postInstall = '' postInstall = '' wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB rm -r "$out"/lib/plugin/debug '' + extraPostInstall; '' + extraPostInstall; passthru.mysqlVersion = lib.versions.majorMinor finalAttrs.version; Loading