Merge pull request #268207 from marsam/fix-mailpit-darwin

mailpit: fix build on darwin

authored by

Mario Rodas and committed by
GitHub
d65967e1 6d69feb3

+6
+6
pkgs/servers/mail/mailpit/default.nix
··· 34 34 hash = "sha256-r4yv2qImIlNMPJagz5i1sxqBDnFAucc2kDUmjGktM6A="; 35 35 }; 36 36 37 + env = lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) { 38 + # Make sure libc++ uses `posix_memalign` instead of `aligned_alloc` on x86_64-darwin. 39 + # Otherwise, nodejs would require the 11.0 SDK and macOS 10.15+. 40 + NIX_CFLAGS_COMPILE = "-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=101300"; 41 + }; 42 + 37 43 nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ]; 38 44 39 45 buildPhase = ''