mysql-shell-innovation: fix build on Linux (#378425)
This commit is contained in:
@@ -114,6 +114,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
|
||||
|
||||
env = {
|
||||
${if stdenv.cc.isGNU then "NIX_CFLAGS_COMPILE" else null} = "-Wno-error=maybe-uninitialized";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
# Build MySQL
|
||||
echo "Building mysqlclient mysqlxclient"
|
||||
@@ -145,6 +149,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
description = "New command line scriptable shell for MySQL";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = with lib.maintainers; [ aaronjheng ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
mainProgram = "mysqlsh";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user