mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
mariadb: fix config build mariadb client
This commit is contained in:
parent
c8488b913a
commit
0a4562277f
|
@ -16,7 +16,7 @@ libExt = stdenv.hostPlatform.extensions.sharedLibrary;
|
|||
mytopEnv = perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ]);
|
||||
|
||||
mariadb = server // {
|
||||
inherit client; # libmysqlclient.so in .out, necessary headers in .dev and utils in .bin
|
||||
inherit client; # MariaDB Client
|
||||
server = server; # MariaDB Server
|
||||
inherit connector-c; # libmysqlclient.so
|
||||
inherit galera;
|
||||
|
@ -120,11 +120,14 @@ client = stdenv.mkDerivation (common // {
|
|||
|
||||
propagatedBuildInputs = [ openssl zlib ]; # required from mariadb.pc
|
||||
|
||||
patches = [ ./cmake-plugin-includedir.patch ];
|
||||
patches = common.patches ++ [
|
||||
./cmake-plugin-includedir.patch
|
||||
];
|
||||
|
||||
cmakeFlags = common.cmakeFlags ++ [
|
||||
"-DWITHOUT_SERVER=ON"
|
||||
"-DWITH_WSREP=OFF"
|
||||
"-DINSTALL_MYSQLSHAREDIR=share/mysql-client"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
|
@ -133,9 +136,8 @@ client = stdenv.mkDerivation (common // {
|
|||
'';
|
||||
|
||||
postInstall = common.postInstall + ''
|
||||
rm -r "$out"/share/mysql
|
||||
rm -r "$out"/share/doc
|
||||
rm "$out"/bin/{msql2mysql,mysql_plugin,mytop,wsrep_sst_rsync_wan}
|
||||
rm "$out"/bin/{mytop,wsrep_sst_rsync_wan}
|
||||
rm "$out"/lib/mysql/plugin/daemon_example.ini
|
||||
libmysqlclient_path=$(readlink -f $out/lib/mysql/libmysqlclient${libExt})
|
||||
rm "$out"/lib/mysql/{libmariadb${libExt},libmysqlclient${libExt},libmysqlclient_r${libExt}}
|
||||
|
|
Loading…
Reference in a new issue