Skip to content

Commit a1508cb

Browse files
mysql-shell-innovation: fix build on Linux (#378425)
2 parents ffa3da3 + af8d3a4 commit a1508cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/development/tools/mysql-shell/innovation.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ stdenv.mkDerivation (finalAttrs: {
114114
++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ]
115115
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ];
116116

117+
env = {
118+
${if stdenv.cc.isGNU then "NIX_CFLAGS_COMPILE" else null} = "-Wno-error=maybe-uninitialized";
119+
};
120+
117121
preConfigure = ''
118122
# Build MySQL
119123
echo "Building mysqlclient mysqlxclient"
@@ -145,6 +149,7 @@ stdenv.mkDerivation (finalAttrs: {
145149
description = "New command line scriptable shell for MySQL";
146150
license = lib.licenses.gpl2;
147151
maintainers = with lib.maintainers; [ aaronjheng ];
152+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
148153
mainProgram = "mysqlsh";
149154
};
150155
})

0 commit comments

Comments
 (0)