mysql-shell-innovation: fix build on Linux (#378425)

This commit is contained in:
Sandro
2025-02-23 20:11:32 +01:00
committed by GitHub
@@ -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";
};
})