mailpit: fix build on darwin
This commit is contained in:
parent
255ff0f5e9
commit
0b119a2d3c
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,12 @@ let
|
||||||
hash = "sha256-r4yv2qImIlNMPJagz5i1sxqBDnFAucc2kDUmjGktM6A=";
|
hash = "sha256-r4yv2qImIlNMPJagz5i1sxqBDnFAucc2kDUmjGktM6A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
env = lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) {
|
||||||
|
# Make sure libc++ uses `posix_memalign` instead of `aligned_alloc` on x86_64-darwin.
|
||||||
|
# Otherwise, nodejs would require the 11.0 SDK and macOS 10.15+.
|
||||||
|
NIX_CFLAGS_COMPILE = "-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=101300";
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
|
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue