From af8d3a48cd2e71f588bc60e68ad5ea7c3fceb695 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 1 Feb 2025 02:51:08 +0000 Subject: [PATCH] mysql-shell-innovation: fix build on Linux --- pkgs/development/tools/mysql-shell/innovation.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/mysql-shell/innovation.nix b/pkgs/development/tools/mysql-shell/innovation.nix index 3ecb03539cb4..dcd4b9fc764d 100644 --- a/pkgs/development/tools/mysql-shell/innovation.nix +++ b/pkgs/development/tools/mysql-shell/innovation.nix @@ -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"; }; })