mysql-workbench: fix build on aarch64-linux

This commit is contained in:
Weijia Wang 2023-02-01 23:01:41 +01:00
parent 64122c7563
commit 43f2ae7d87

View File

@ -140,8 +140,13 @@ in stdenv.mkDerivation rec {
patchShebangs tools/get_wb_version.sh
'';
# error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
NIX_CFLAGS_COMPILE = toString ([
# error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated
"-Wno-error=deprecated-declarations"
] ++ lib.optionals stdenv.isAarch64 [
# error: narrowing conversion of '-1' from 'int' to 'char'
"-Wno-error=narrowing"
]);
cmakeFlags = [
"-DMySQL_CONFIG_PATH=${mysql}/bin/mysql_config"