Change:
Describe the bug On , fails to build because there are lots of compiler warnings and those are treated as errors. To Reproduce Steps to reproduce the behavior: out the branch of the repo's root directory, run Expected behavior Build succeeds and a symlink is created pointing to the build result. Observed behavior <details<summaryBuild fails with the following output (click to expand)</summary</detailsand with exit code . Screenshots n/a Additional context n/a Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(das-g): nixpkgs: Maintainer information:

Discussion:
<del> { stdenv, fetchurl, substituteAll, cmake, ninja, pkgconfig , glibc, gtk3, gtkmm3, pcre, swig, antlr4_7, sudo , mysql, libxml2, libmysqlconnectorcpp , vsqlite, gdal, libiodbc, libpthreadstubs , libXdmcp, libuuid, libzip, libsecret, libssh , python2, jre , boost, libsigcxx, libX11, openssl , proj, cairo, libxkbcommon, epoxy, wrapGAppsHook , at-spi2-core, dbus, bash, coreutils </del> <ins> { stdenv , fetchurl , substituteAll , cmake , ninja , pkgconfig , glibc , gtk3 , gtkmm3 , pcre , swig , antlr4_7 , sudo , mysql , libxml2 , libmysqlconnectorcpp , vsqlite , gdal , libiodbc , libpthreadstubs , libXdmcp , libuuid , libzip , libsecret , libssh , python2 , jre , boost , libsigcxx , libX11 , openssl , rapidjson , proj , cairo , libxkbcommon , epoxy , wrapGAppsHook , at-spi2-core , dbus , bash , coreutils </ins> }: let inherit (python2.pkgs) paramiko pycairo pyodbc; in stdenv.mkDerivation rec { pname = "mysql-workbench"; <del> version = "8.0.15"; </del> <ins> version = "8.0.19"; </ins> src = fetchurl { url = "http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-${version}-src.tar.gz"; <del> sha256 = "0ca93azasya5xiw6j2map8drmxf445qqydpvrb512kjfqdiv67x6"; </del> <ins> sha256 = "unrszSK+tKcARSHxRSAAos+jDtYxdDcSnFENixaDJsw="; </ins> }; patches = [ ./fix-gdal-includes.patch (substituteAll { src = ./hardcode-paths.patch; catchsegv = "${glibc.bin}/bin/catchsegv";

rmdir = "${coreutils}/bin/rmdir"; sudo = "${sudo}/bin/sudo"; }) <ins> # Fix swig not being able to find headers # https://github.com/NixOS/nixpkgs/pull/82362#issuecomment-597948461 (substituteAll { src = ./fix-swig-build.patch; cairoDev = "${cairo.dev}"; }) </ins> ]; # have it look for 4.7.2 instead of 4.7.1

''; nativeBuildInputs = [ <del> cmake ninja pkgconfig jre swig wrapGAppsHook </del> <ins> cmake ninja pkgconfig jre swig wrapGAppsHook </ins> ]; buildInputs = [ <del> gtk3 gtkmm3 libX11 antlr4_7.runtime.cpp python2 mysql libxml2 libmysqlconnectorcpp vsqlite gdal boost libssh openssl libiodbc pcre cairo libuuid libzip libsecret libsigcxx proj </del> <ins> gtk3 gtkmm3 libX11 antlr4_7.runtime.cpp python2 mysql libxml2 libmysqlconnectorcpp vsqlite gdal boost libssh openssl rapidjson libiodbc pcre cairo libuuid libzip libsecret libsigcxx proj </ins> # python dependencies: <del> paramiko pycairo pyodbc # sqlanydb </del> <ins> paramiko pycairo pyodbc # TODO: package sqlanydb and add it here </ins> # transitive dependencies: <del> libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core dbus </del> <ins> libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core dbus </ins> ]; postPatch = '' patchShebangs tools/get_wb_version.sh ''; <del> # error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated </del> <ins> # error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated </ins> NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; cmakeFlags = [ "-DMySQL_CONFIG_PATH=${mysql}/bin/mysql_config" "-DIODBC_CONFIG_PATH=${libiodbc}/bin/iodbc-config" "-DWITH_ANTLR_JAR=${antlr4_7.jarLocation}" <ins> # mysql-workbench 8.0.19 depends on libmysqlconnectorcpp 1.1.8. # Newer versions of connector still provide the legacy library when enabled # but the headers are in a different location. "-DMySQLCppConn_INCLUDE_DIR=${libmysqlconnectorcpp}/include/jdbc" </ins> ]; # There is already an executable and a wrapper in bindir

and execute SQL queries. ''; <del> homepage = http://wb.mysql.com/; </del> <ins> homepage = "http://wb.mysql.com/"; </ins> license = licenses.gpl2; maintainers = [ maintainers.kkallio ]; platforms = platforms.linux;

<ins> --- a/library/forms/swig/CMakeLists.txt +++ b/library/forms/swig/CMakeLists.txt @@ -57,7 +57,7 @@ set(CMAKE_SWIG_FLAGS -w312) set_source_files_properties(cairo.i PROPERTIES CPLUSPLUS ON) -set_property(SOURCE cairo.i PROPERTY SWIG_FLAGS -DCAIRO_HAS_PNG_FUNCTIONS=1 -fcompact -DSWIG_PYTHON_LEGACY_BOOL -I/usr/include) +set_property(SOURCE cairo.i PROPERTY SWIG_FLAGS -DCAIRO_HAS_PNG_FUNCTIONS=1 -fcompact -DSWIG_PYTHON_LEGACY_BOOL -I@cairoDev@/include) if(CMAKE_VERSION VERSION_LESS 3.8) swig_add_module(cairo python cairo.i) else() </ins>

<del> { stdenv, fetchurl, cmake, boost, mysql }: </del> <ins> { stdenv , fetchurl , cmake , boost , openssl , mysql80 }: </ins> stdenv.mkDerivation rec { pname = "libmysqlconnectorcpp"; <del> version = "1.1.9"; </del> <ins> version = "8.0.19"; </ins> src = fetchurl { <del> url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz"; sha256 = "1r6j17sy5816a2ld759iis2k6igc2w9p70y4nw9w3rd4d5x88c9y"; </del> <ins> url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz"; sha256 = "fDvXTOZKkwDn1IG3aziK2VAXpSSAxpi3VVea7GLUoh4="; </ins> }; <del> buildInputs = [ cmake boost mysql ]; </del> <ins> nativeBuildInputs = [ cmake ]; </ins> <del> cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ]; </del> <ins> buildInputs = [ boost openssl mysql80 ]; cmakeFlags = [ # libmysqlclient is shared library "-DMYSQLCLIENT_STATIC_LINKING=false" # still needed for mysql-workbench "-DWITH_JDBC=true" ]; </ins> meta = { <del> homepage = https://dev.mysql.com/downloads/connector/cpp/; </del> <ins> homepage = "https://dev.mysql.com/downloads/connector/cpp/"; </ins> description = "C++ library for connecting to mysql servers."; license = stdenv.lib.licenses.gpl2; platforms = stdenv.lib.platforms.unix;

libmysofa = callPackage ../development/libraries/audio/libmysofa { }; <del> libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp { mysql = mysql57; }; </del> <ins> libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp { }; </ins> libnatpmp = callPackage ../development/libraries/libnatpmp { };