Loading pkgs/servers/sql/mariadb/default.nix +9 −4 Original line number Diff line number Diff line Loading @@ -116,9 +116,14 @@ let prePatch = '' sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt ''; env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { # MariaDB uses non-POSIX fopen64, which musl only conditionally defines. NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE"; } // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { # Detection of netdb.h doesnt work for some reason on x86_64-darwin NIX_CFLAGS_COMPILE = "-DHAVE_NETDB_H"; }; patches = [ Loading Loading
pkgs/servers/sql/mariadb/default.nix +9 −4 Original line number Diff line number Diff line Loading @@ -116,9 +116,14 @@ let prePatch = '' sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt ''; env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { env = lib.optionalAttrs (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu) { # MariaDB uses non-POSIX fopen64, which musl only conditionally defines. NIX_CFLAGS_COMPILE = "-D_LARGEFILE64_SOURCE"; } // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { # Detection of netdb.h doesnt work for some reason on x86_64-darwin NIX_CFLAGS_COMPILE = "-DHAVE_NETDB_H"; }; patches = [ Loading