mariadb: add needed packages
This commit is contained in:
parent
c6d159d696
commit
982a23de94
@ -3,6 +3,7 @@
|
|||||||
, libaio, libevent, jemalloc, cracklib, systemd, perl
|
, libaio, libevent, jemalloc, cracklib, systemd, perl
|
||||||
, fixDarwinDylibNames, cctools, CoreServices, less
|
, fixDarwinDylibNames, cctools, CoreServices, less
|
||||||
, numactl # NUMA Support
|
, numactl # NUMA Support
|
||||||
|
, withStorageMroonga ? true, kytea, msgpack, zeromq
|
||||||
, withoutClient ? false
|
, withoutClient ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -145,6 +146,7 @@ server = stdenv.mkDerivation (common // {
|
|||||||
xz lzo lz4 bzip2 snappy
|
xz lzo lz4 bzip2 snappy
|
||||||
libxml2 boost judy libevent cracklib
|
libxml2 boost judy libevent cracklib
|
||||||
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
|
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
|
||||||
|
++ optionals withStorageMroonga [ kytea msgpack zeromq ]
|
||||||
++ optional stdenv.hostPlatform.isLinux linux-pam
|
++ optional stdenv.hostPlatform.isLinux linux-pam
|
||||||
++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv;
|
++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv;
|
||||||
|
|
||||||
@ -167,6 +169,8 @@ server = stdenv.mkDerivation (common // {
|
|||||||
"-DWITHOUT_FEDERATED=1"
|
"-DWITHOUT_FEDERATED=1"
|
||||||
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) [
|
] ++ optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) [
|
||||||
"-DWITH_NUMA=ON"
|
"-DWITH_NUMA=ON"
|
||||||
|
] ++ optional (!withStorageMroonga) [
|
||||||
|
"-DWITHOUT_MROONGA=ON"
|
||||||
] ++ optionals withoutClient [
|
] ++ optionals withoutClient [
|
||||||
"-DWITHOUT_CLIENT=ON"
|
"-DWITHOUT_CLIENT=ON"
|
||||||
] ++ optionals stdenv.hostPlatform.isDarwin [
|
] ++ optionals stdenv.hostPlatform.isDarwin [
|
||||||
@ -182,7 +186,6 @@ server = stdenv.mkDerivation (common // {
|
|||||||
chmod +x "$out"/bin/wsrep_sst_common
|
chmod +x "$out"/bin/wsrep_sst_common
|
||||||
rm "$out"/bin/{mysql_client_test,mysqltest}
|
rm "$out"/bin/{mysql_client_test,mysqltest}
|
||||||
rm -r "$out"/data # Don't need testing data
|
rm -r "$out"/data # Don't need testing data
|
||||||
mv "$out"/share/{groonga,groonga-normalizer-mysql} "$out"/share/doc/mysql
|
|
||||||
'' + optionalString withoutClient ''
|
'' + optionalString withoutClient ''
|
||||||
${ # We don't build with GSSAPI on Darwin
|
${ # We don't build with GSSAPI on Darwin
|
||||||
optionalString (!stdenv.hostPlatform.isDarwin) ''
|
optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
@ -191,6 +194,8 @@ server = stdenv.mkDerivation (common // {
|
|||||||
}
|
}
|
||||||
rm "$out"/lib/mysql/plugin/client_ed25519.so
|
rm "$out"/lib/mysql/plugin/client_ed25519.so
|
||||||
rm "$out"/lib/{libmysqlclient${libExt},libmysqlclient_r${libExt}}
|
rm "$out"/lib/{libmysqlclient${libExt},libmysqlclient_r${libExt}}
|
||||||
|
'' + optionalString withStorageMroonga ''
|
||||||
|
mv "$out"/share/{groonga,groonga-normalizer-mysql} "$out"/share/doc/mysql
|
||||||
'' + optionalString (!stdenv.hostPlatform.isDarwin) ''
|
'' + optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
sed -i 's/-mariadb/-mysql/' "$out"/bin/galera_new_cluster
|
sed -i 's/-mariadb/-mysql/' "$out"/bin/galera_new_cluster
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user