···18 ''}
19 '';
2021- buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux) systemd;
22 # More cross-compiling fixes.
23 # Note: this enables libc malloc as a temporary fix for cross-compiling.
24 # Due to hardcoded configure flags in jemalloc, we can't cross-compile vendored jemalloc properly, and so we're forced to use libc allocator.
25 # It's weird that the build isn't failing because of failure to compile dependencies, it's from failure to link them!
26 makeFlags = [ "PREFIX=$(out)" ]
27 ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "AR=${stdenv.cc.targetPrefix}ar" "RANLIB=${stdenv.cc.targetPrefix}ranlib" "MALLOC=libc" ]
28- ++ stdenv.lib.optional (stdenv.isLinux) ["USE_SYSTEMD=yes"];
2930 enableParallelBuilding = true;
31
···18 ''}
19 '';
2021+ buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) systemd;
22 # More cross-compiling fixes.
23 # Note: this enables libc malloc as a temporary fix for cross-compiling.
24 # Due to hardcoded configure flags in jemalloc, we can't cross-compile vendored jemalloc properly, and so we're forced to use libc allocator.
25 # It's weird that the build isn't failing because of failure to compile dependencies, it's from failure to link them!
26 makeFlags = [ "PREFIX=$(out)" ]
27 ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "AR=${stdenv.cc.targetPrefix}ar" "RANLIB=${stdenv.cc.targetPrefix}ranlib" "MALLOC=libc" ]
28+ ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) ["USE_SYSTEMD=yes"];
2930 enableParallelBuilding = true;
31